1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-21 20:27:13 +01:00

Invoke the debugger and traceback when catching exceptions from failure callback in command manager.

This commit is contained in:
Sandu Liviu Catalin 2016-08-26 17:16:33 +03:00
parent e37d01cabd
commit e76026eae3

View File

@ -4,6 +4,7 @@
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
#include "Base/Shared.hpp" #include "Base/Shared.hpp"
#include "Base/Buffer.hpp" #include "Base/Buffer.hpp"
#include "Logger.hpp"
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
#include <cctype> #include <cctype>
@ -412,8 +413,9 @@ protected:
} }
catch (const Sqrat::Exception & e) catch (const Sqrat::Exception & e)
{ {
// We can only log this incident and in the future maybe also include the location LogErr("Command error callback failed");
LogErr("Command error callback failed [%s]", e.what()); // Call the debugger on this error and see if it can find anything
Logger::Get().Debug("%s", e.what());
} }
} }