From 55ee6f970e52c841d4576279e079528a71b13c92 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 17 Mar 2016 11:45:22 +0000 Subject: [PATCH] Write the hook parameter in the debug buffer on error in hook --- src/hook_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hook_manager.cc b/src/hook_manager.cc index 389c85045..2a29d5cc2 100644 --- a/src/hook_manager.cc +++ b/src/hook_manager.cc @@ -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())); } }