[orx-expression-evaluator] Improve exception texts

This commit is contained in:
Edwin Jakobs
2025-01-05 08:16:42 +01:00
parent 1e9c46e8f7
commit b82ffb93c9
3 changed files with 18 additions and 9 deletions

View File

@@ -261,7 +261,7 @@ internal class ExpressionListener(
IDType.VARIABLE -> doubleStack.push(
when (name) {
"PI" -> PI
else -> constants[name] ?: errorValue("unresolved variable: '${name}'", 0.0 / 0.0)
else -> constants[name] ?: errorValue("unresolved value: '${name}'. available values: ${constants}", 0.0 / 0.0)
}
)