better error message from exprCase

This commit is contained in:
2022-07-01 23:33:00 +00:00
parent 4413114218
commit c21c323292

View File

@@ -1021,7 +1021,7 @@ class Macros {
} }
} }
throw KissError.fromExp(wholeExp, 'expression ${toMatch.def.toString()} matches no pattern in exprCase'); throw KissError.fromExp(wholeExp, 'expression ${toMatchValue.def.toString()} matches no pattern in exprCase');
}; };
return b.call(b.symbol("Macros.exprCase"), [b.str(functionKey), toMatch, b.symbol("__interp__")]); return b.call(b.symbol("Macros.exprCase"), [b.str(functionKey), toMatch, b.symbol("__interp__")]);