Surface ICodedFunction exceptions: set interpreter message via ProduceOutput in ExecuteFunction

This commit is contained in:
Jordan Wages 2025-08-21 03:24:13 -05:00
commit 808d4ca420

View file

@ -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);
}
}