Skip to content

Commit

Permalink
Always use exit code 1 on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Saloň committed Aug 5, 2024
1 parent 4ed9b59 commit 3267bcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmdBuilder/executeRootCmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func printError(err error, uxBlocks uxBlock.UxBlocks) {

if userErr := errorsx.AsUserError(err); userErr != nil {
uxBlocks.PrintError(styles.ErrorLine(err.Error()))
os.Exit(1)
return
}

Expand All @@ -80,6 +81,7 @@ func printError(err error, uxBlocks uxBlock.UxBlocks) {
uxBlocks.PrintError(styles.ErrorLine(string(meta)))
}

os.Exit(1)
return
}

Expand Down

0 comments on commit 3267bcc

Please sign in to comment.