Write the hook parameter in the debug buffer on error in hook

This commit is contained in:
Maxime Coste 2016-03-17 11:45:22 +00:00
parent 757bbe9e56
commit 55ee6f970e

View File

@ -76,8 +76,8 @@ void HookManager::run_hook(StringView hook_name,
catch (runtime_error& err)
{
hook_error = true;
write_to_debug_buffer(format("error running hook {}/{}: {}",
hook_name, hook.key, err.what()));
write_to_debug_buffer(format("error running hook {}({})/{}: {}",
hook_name, param, hook.key, err.what()));
}
}