From e76026eae3498c48896c0900fcca26cb8e3fd131 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Fri, 26 Aug 2016 17:16:33 +0300 Subject: [PATCH] Invoke the debugger and traceback when catching exceptions from failure callback in command manager. --- source/Command.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Command.hpp b/source/Command.hpp index ce0c4294..ffa9479c 100644 --- a/source/Command.hpp +++ b/source/Command.hpp @@ -4,6 +4,7 @@ // ------------------------------------------------------------------------------------------------ #include "Base/Shared.hpp" #include "Base/Buffer.hpp" +#include "Logger.hpp" // ------------------------------------------------------------------------------------------------ #include @@ -412,8 +413,9 @@ protected: } 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 [%s]", e.what()); + LogErr("Command error callback failed"); + // Call the debugger on this error and see if it can find anything + Logger::Get().Debug("%s", e.what()); } }