Fix debug output, use action to generate msg

This commit is contained in:
Matthias Beyer 2016-09-19 10:00:35 +02:00
parent 43bdedea8e
commit f5d73ace0e
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ impl Runtime {
} }
.map_err(Box::new) .map_err(Box::new)
.map_err(|e| HEK::HookExecutionError.into_error_with_cause(e)) .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 /// Check whether the WD is "dirty" - whether there is a diff to the repository