This commit is contained in:
parent
c49188847a
commit
16ad6630dd
3 changed files with 6 additions and 2 deletions
2
assets/tests/lua/eval_that_causes_runtime_error.lua
Normal file
2
assets/tests/lua/eval_that_causes_runtime_error.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
mark_called()
|
||||
error()
|
||||
2
assets/tests/rhai/eval_that_causes_runtime_error.rhai
Normal file
2
assets/tests/rhai/eval_that_causes_runtime_error.rhai
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
mark_called();
|
||||
throw();
|
||||
|
|
@ -294,9 +294,9 @@ const ENTITY_VAR_NAME: &str = "entity";
|
|||
/// An error that can occur when internal [ScriptingPlugin] systems are being executed
|
||||
#[derive(Error, Debug)]
|
||||
pub enum ScriptingError {
|
||||
#[error("script runtime error:\n {0}")]
|
||||
#[error("script runtime error:\n{0}")]
|
||||
RuntimeError(String),
|
||||
#[error("script compilation error: {0}")]
|
||||
#[error("script compilation error:\n{0}")]
|
||||
CompileError(Box<dyn std::error::Error + Send>),
|
||||
#[error("no runtime resource present")]
|
||||
NoRuntimeResource,
|
||||
|
|
|
|||
Loading…
Reference in a new issue