diff --git a/src/cmd/validate.rs b/src/cmd/validate.rs index 4265a5ca6..cfe2d7e6b 100644 --- a/src/cmd/validate.rs +++ b/src/cmd/validate.rs @@ -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) => {