mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 13:24:54 +01:00
fix(lua): return error with context
maybe wasteful? but i really want this to show error strings
This commit is contained in:
parent
f1b8d83bac
commit
b51e55570f
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@ use tokio::sync::broadcast;
|
|||
|
||||
impl From::<CodempError> for LuaError {
|
||||
fn from(value: CodempError) -> Self {
|
||||
LuaError::RuntimeError(value.to_string())
|
||||
LuaError::WithContext {
|
||||
context: value.to_string(),
|
||||
cause: std::sync::Arc::new(LuaError::external(value)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue