From 652a250189c4602035a7fd78dd6731c4f1588fe3 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 22 Nov 2015 18:27:23 -0800 Subject: [PATCH] Add an error message for when creating the Lua state fails --- src/auto4_lua.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/auto4_lua.cpp b/src/auto4_lua.cpp index 582e85b03..baa345101 100644 --- a/src/auto4_lua.cpp +++ b/src/auto4_lua.cpp @@ -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(); };