better error message from exprCase

This commit is contained in:
2022-07-01 23:33:00 +00:00
parent 6f7a518bfe
commit 7d4d1c1e12

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__")]);