diff --git a/src/Core/InputInterpreter.cs b/src/Core/InputInterpreter.cs index 8156c15..c9c31c1 100644 --- a/src/Core/InputInterpreter.cs +++ b/src/Core/InputInterpreter.cs @@ -186,8 +186,10 @@ namespace CSMic { return fn.Execute(args); } - catch + catch (Exception ex) { + // Surface function errors to the interpreter's message channel + ProduceOutput(0m, ex.Message); return new FunctionValue(FunctionValueType.None, null); } }