Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptnull committed Jan 14, 2025
1 parent 1b75ab3 commit 5ed705f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions registry-automation/cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ func executeValidateCmd(cmd *cobra.Command, args []string) {
hasError = true
}
}
fmt.Println("Completed validating `connector-packaging.json` contents")

if hasError {
fmt.Println("Exiting with a non-zero error code due to the error(s) in validation")
os.Exit(1)
}
}

0 comments on commit 5ed705f

Please sign in to comment.