From f5d73ace0e8bc0bed5c188146379fd97943ad009 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 19 Sep 2016 10:00:35 +0200 Subject: [PATCH] Fix debug output, use action to generate msg --- libimagstorestdhook/src/vcs/git/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstorestdhook/src/vcs/git/runtime.rs b/libimagstorestdhook/src/vcs/git/runtime.rs index 4e37002d..0fb26326 100644 --- a/libimagstorestdhook/src/vcs/git/runtime.rs +++ b/libimagstorestdhook/src/vcs/git/runtime.rs @@ -152,7 +152,7 @@ impl Runtime { } .map_err(Box::new) .map_err(|e| HEK::HookExecutionError.into_error_with_cause(e)) - .map_dbg_str("[GIT CREATE HOOK]: Branch checked out") + .map_dbg(|_| format!("[GIT {} HOOK]: Branch checked out", action.uppercase())) } /// Check whether the WD is "dirty" - whether there is a diff to the repository