[oden] Catch and render script errors, stop crashing
This is kinda nice actually
This commit is contained in:
parent
a08bc07cbb
commit
22732c2b05
2 changed files with 72 additions and 30 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue