[main] display error message

This commit is contained in:
Martin Thielecke 2015-08-22 22:11:48 +00:00
parent faa1c563ea
commit 3bc023d578

View File

@ -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
}