diff options
author | madmaxoft <github@xoft.cz> | 2013-11-13 15:54:56 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-13 15:54:56 +0100 |
commit | 991f7d231548a48c8c5183c8955bf241d69091d4 (patch) | |
tree | 9185ba0151037c75e3d59059a0c835a5fef22ef1 /source/ManualBindings.cpp | |
parent | Fixed compiler warning. (diff) | |
download | cuberite-991f7d231548a48c8c5183c8955bf241d69091d4.tar cuberite-991f7d231548a48c8c5183c8955bf241d69091d4.tar.gz cuberite-991f7d231548a48c8c5183c8955bf241d69091d4.tar.bz2 cuberite-991f7d231548a48c8c5183c8955bf241d69091d4.tar.lz cuberite-991f7d231548a48c8c5183c8955bf241d69091d4.tar.xz cuberite-991f7d231548a48c8c5183c8955bf241d69091d4.tar.zst cuberite-991f7d231548a48c8c5183c8955bf241d69091d4.zip |
Diffstat (limited to 'source/ManualBindings.cpp')
-rw-r--r-- | source/ManualBindings.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp index 37274e2af..f98e25880 100644 --- a/source/ManualBindings.cpp +++ b/source/ManualBindings.cpp @@ -1347,7 +1347,9 @@ static int tolua_cPluginManager_BindCommand(lua_State * L) if (!self->BindCommand(Command, Plugin, Permission, HelpString)) { - // Refused. Possibly already bound. Error message has been given, bail out silently. + // Refused. Possibly already bound. Error message has been given, display the callstack: + cLuaState LS(L); + LS.LogStackTrace(); return 0; } @@ -1409,7 +1411,9 @@ static int tolua_cPluginManager_BindConsoleCommand(lua_State * L) if (!self->BindConsoleCommand(Command, Plugin, HelpString)) { - // Refused. Possibly already bound. Error message has been given, bail out silently. + // Refused. Possibly already bound. Error message has been given, display the callstack: + cLuaState LS(L); + LS.LogStackTrace(); return 0; } |