Skip to content

Commit 27930cc

Browse files
committed
Print error when running _exec
Signed-off-by: Donnie Adams <[email protected]>
1 parent cd80db5 commit 27930cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cli/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cli
22

33
import (
44
"context"
5+
"fmt"
56
"os"
67
"os/signal"
78

@@ -24,6 +25,7 @@ func Main() {
2425
}
2526
if os.Args[1] == "_exec" {
2627
if err := supervise.Daemon(); err != nil {
28+
_, _ = fmt.Fprintf(os.Stderr, "failed running _exec: %v\n", err)
2729
os.Exit(1)
2830
}
2931
os.Exit(0)

0 commit comments

Comments
 (0)