Compare commits

..

No commits in common. "c49188847a431f85257a1a926474bd762f6875a0" and "20f2ad8fb19a3ee3617036354885ad7f67c429e2" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View file

@ -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:\n {0}")]
#[error("script runtime error: {0}")]
RuntimeError(String),
#[error("script compilation error: {0}")]
CompileError(Box<dyn std::error::Error + Send>),

View file

@ -223,7 +223,7 @@ impl TryConvert for BevyVec3 {
impl From<magnus::Error> for ScriptingError {
fn from(value: magnus::Error) -> Self {
ScriptingError::RuntimeError(format!(
"{}\nbacktrace:\n{}\n",
"error: {}\nbacktrace:\n{}\n",
value.inspect(),
value
.value()