Compare commits
2 commits
20f2ad8fb1
...
c49188847a
| Author | SHA1 | Date | |
|---|---|---|---|
| c49188847a | |||
| fc490f5d13 |
2 changed files with 2 additions and 2 deletions
|
|
@ -294,7 +294,7 @@ 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: {0}")]
|
||||
#[error("script runtime error:\n {0}")]
|
||||
RuntimeError(String),
|
||||
#[error("script compilation error: {0}")]
|
||||
CompileError(Box<dyn std::error::Error + Send>),
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ impl TryConvert for BevyVec3 {
|
|||
impl From<magnus::Error> for ScriptingError {
|
||||
fn from(value: magnus::Error) -> Self {
|
||||
ScriptingError::RuntimeError(format!(
|
||||
"error: {}\nbacktrace:\n{}\n",
|
||||
"{}\nbacktrace:\n{}\n",
|
||||
value.inspect(),
|
||||
value
|
||||
.value()
|
||||
|
|
|
|||
Loading…
Reference in a new issue