mirror of https://github.com/odrling/Aegisub
Add an error message for when creating the Lua state fails
This commit is contained in:
parent
263ccbdc23
commit
652a250189
|
@ -395,7 +395,10 @@ namespace {
|
||||||
|
|
||||||
// create lua environment
|
// create lua environment
|
||||||
L = lua_open();
|
L = lua_open();
|
||||||
if (!L) return;
|
if (!L) {
|
||||||
|
description = "Could not initialize Lua state";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool loaded = false;
|
bool loaded = false;
|
||||||
BOOST_SCOPE_EXIT_ALL(&) { if (!loaded) Destroy(); };
|
BOOST_SCOPE_EXIT_ALL(&) { if (!loaded) Destroy(); };
|
||||||
|
|
Loading…
Reference in New Issue