[oden] Catch and render script errors, stop crashing

This is kinda nice actually
This commit is contained in:
John Doty 2023-08-31 21:14:27 -07:00
parent a08bc07cbb
commit 22732c2b05
2 changed files with 72 additions and 30 deletions

View file

@ -41,7 +41,7 @@ pub enum Error {
ConversionError(String),
#[error("an error occurred calling a rust function: {0}")]
RustFunctionError(String),
#[error("an exception was thrown during evaluation: {1}\nStack: {2}")]
#[error("an exception was thrown during evaluation: {1}\nStack:\n{2}")]
Exception(Value, String, String),
#[error("out of memory")]
OutOfMemory,