Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

Commit 2239c3e

Browse files
committed
fix(cli): exit command if error occurs
1 parent 6889f0f commit 2239c3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routines/tasks.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func RunTask(options ...TaskOption) {
8484
}
8585
if result.Error {
8686
fmt.Fprintf(os.Stdout, ErrorColor, "✗ ", result.Message)
87+
os.Exit(1)
8788
} else {
8889
fmt.Fprintf(os.Stdout, SuccessColor, "✓ ", result.Message)
8990
}

0 commit comments

Comments
 (0)