Add an error message for when creating the Lua state fails

This commit is contained in:
Thomas Goyne 2015-11-22 18:27:23 -08:00
parent 263ccbdc23
commit 652a250189
1 changed files with 4 additions and 1 deletions

View File

@ -395,7 +395,10 @@ namespace {
// create lua environment
L = lua_open();
if (!L) return;
if (!L) {
description = "Could not initialize Lua state";
return;
}
bool loaded = false;
BOOST_SCOPE_EXIT_ALL(&) { if (!loaded) Destroy(); };