Skip to content

Commit

Permalink
🐛 Exit with code 1 on error
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jun 28, 2021
1 parent 6ee8345 commit 18907e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ package main

import (
"github.com/clevyr/kubedb/cmd"
"os"
)

func main() {
_ = cmd.Execute()
if err := cmd.Execute(); err != nil {
os.Exit(1)
}
}

0 comments on commit 18907e1

Please sign in to comment.