mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +01:00
fix(lua): dont throw error, return a string
while less "correct", dealing with the error in lua is really awful. also its too late to deal with that error anyway, it was in another thread
This commit is contained in:
parent
d215b4ab0b
commit
c5ab72280a
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ fn entrypoint(lua: &Lua) -> LuaResult<LuaTable> {
|
|||
val.push_back(arg.into_lua(lua)?);
|
||||
}
|
||||
Some(ext::callback::LuaCallback::Fail(msg)) => {
|
||||
return Err(LuaError::runtime(msg));
|
||||
val.push_back(false.into_lua(lua)?);
|
||||
val.push_back(msg.into_lua(lua)?);
|
||||
},
|
||||
}
|
||||
Ok(val)
|
||||
|
|
Loading…
Reference in a new issue