mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-12 14:40:00 -06:00
Make luaError function return null to waiting javascript
This commit is contained in:
@@ -191,14 +191,23 @@ bool ScriptEngine::runScript(const std::string& script, ScriptCallback callback)
|
||||
}
|
||||
catch (const ghoul::lua::LuaLoadingException& e) {
|
||||
LERRORC(e.component, e.message);
|
||||
if (callback) {
|
||||
callback(ghoul::Dictionary());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
catch (const ghoul::lua::LuaExecutionException& e) {
|
||||
LERRORC(e.component, e.message);
|
||||
if (callback) {
|
||||
callback(ghoul::Dictionary());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
catch (const ghoul::RuntimeError& e) {
|
||||
LERRORC(e.component, e.message);
|
||||
if (callback) {
|
||||
callback(ghoul::Dictionary());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user