From 3bc023d5787c0bf6cb472a6f605b2e4b6eba1d76 Mon Sep 17 00:00:00 2001 From: Martin Thielecke Date: Sat, 22 Aug 2015 22:11:48 +0000 Subject: [PATCH] [main] display error message --- githook-gotest/hook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/githook-gotest/hook.go b/githook-gotest/hook.go index 99c683e..b070815 100644 --- a/githook-gotest/hook.go +++ b/githook-gotest/hook.go @@ -16,9 +16,9 @@ func main() { os.Chdir(general.GetGitRoot()) - _, status := general.RunCommand("go", "test", "-test.short", "./...") + result, status := general.RunCommand("go", "test", "-test.short", "./...") if status != 0 { - fmt.Fprint(os.Stderr, "Test failed, please commit only stuff that works.\n") + fmt.Fprint(os.Stderr, "Test failed, please commit only stuff that works.\n%s", result) os.Exit(1) return }