From 5ef78cd81504261a1195fe72a93db18a71ad12a7 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 19 Mar 2012 08:23:48 +0200 Subject: [PATCH] Make Lua error output in log clearer --- src/script.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/script.cpp b/src/script.cpp index 1925ea7..a159f22 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -96,10 +96,13 @@ bool script_load(lua_State *L, const char *path) int ret = luaL_loadfile(L, path) || lua_pcall(L, 0, 0, errorhandler); if(ret){ - errorstream<<"Failed to load and run script from "<