Skip to content

Commit 63cf7d7

Browse files
committed
Print stdout when notify cmd has an error
1 parent a579b44 commit 63cf7d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-gen.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,10 @@ func runNotifyCmd(config Config) {
276276

277277
args := strings.Split(config.NotifyCmd, " ")
278278
cmd := exec.Command(args[0], args[1:]...)
279-
_, err := cmd.CombinedOutput()
279+
out, err := cmd.CombinedOutput()
280280
if err != nil {
281281
fmt.Printf("error running notify command: %s, %s\n", config.NotifyCmd, err)
282+
fmt.Println(string(out))
282283
}
283284
}
284285

0 commit comments

Comments
 (0)