From 581f950e10b40f2af4ede56c3fa78f13eccb610b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 2 Dec 2011 22:49:54 +0200 Subject: Fix script error reporting a bit --- src/script.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/script.cpp') diff --git a/src/script.cpp b/src/script.cpp index 16d8030d6..5a6c98026 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -35,10 +35,11 @@ void script_error(lua_State *L, const char *fmt, ...) { va_list argp; va_start(argp, fmt); - vfprintf(stderr, fmt, argp); + char buf[10000]; + vsnprintf(buf, 10000, fmt, argp); va_end(argp); - lua_close(L); - exit(EXIT_FAILURE); + //errorstream<<"SCRIPT ERROR: "<