Skip to content

Commit 08a0e40

Browse files
feat(apps): print output from command to stderr if the command failed (#81)
1 parent 867f50b commit 08a0e40

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cmd/apps.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ func AppRun(appID, command string) error {
202202
return err
203203
}
204204

205-
fmt.Print(out.Output)
205+
if out.ReturnCode == 0 {
206+
fmt.Print(out.Output)
207+
} else {
208+
fmt.Fprint(os.Stderr, out.Output)
209+
}
210+
206211
os.Exit(out.ReturnCode)
207212
return nil
208213
}

0 commit comments

Comments
 (0)