Skip to content

Commit

Permalink
fix: we actually want to exit with an error, not return Ok
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Dec 31, 2024
1 parent 3e53294 commit a4055d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cmd/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
werr!("Valid JSON Schema. Continuing...");
}
} else {
if !args.flag_quiet {
werr!("Invalid JSON Schema. Exiting...");
}
return Ok(());
return fail_clierror!("Invalid JSON Schema. Exiting...");
}
},
Err(e) => {
Expand Down

0 comments on commit a4055d7

Please sign in to comment.