aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2019-01-28 09:09:08 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2019-01-28 13:22:22 +0000
commit8b684769a82e6d587060ac37478602320039fb41 (patch)
tree582317d309eed42e1d2edb253cf1bdd27c40915c
parent21cbfef532515902b59287875f3852e34e6363ca (diff)
wslua: Improve syntax error message
The filename is included in the error message from Lua so we don't need to display this twice. Change-Id: I00aa7255ff24b07b9f45a8e814a97b61c35936e1 Reviewed-on: https://code.wireshark.org/review/31768 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
-rw-r--r--epan/wslua/init_wslua.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index e44309790d..58db9ce736 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -567,15 +567,15 @@ static gboolean lua_load_script(const gchar* filename, const gchar* dirname, con
break;
case LUA_ERRSYNTAX:
- report_failure("Lua: syntax error during precompilation of `%s':\n%s",filename,lua_tostring(L,-1));
+ report_failure("Lua: syntax error: %s", lua_tostring(L, -1));
break;
case LUA_ERRMEM:
- report_failure("Lua: memory allocation error during precompilation of %s",filename);
+ report_failure("Lua: memory allocation error during precompilation of %s", filename);
break;
default:
- report_failure("Lua: unknown error during precompilation of %s: %d",filename,error);
+ report_failure("Lua: unknown error during precompilation of %s: %d", filename, error);
break;
}
fclose(file);