Skip to content

Commit 0bf5181

Browse files
committed
Don't print lint errors twice
1 parent eef1c31 commit 0bf5181

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎cli/src/main.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ fn lint(opts: LintOpts) -> Result<(), Error> {
141141
Some(bundle_path) => {
142142
let mut bundle: ScriptBundle = ScriptBundle::load(&mut BufReader::new(File::open(bundle_path)?))?;
143143
let mut compiler = Compiler::new(&mut bundle.pool)?;
144-
compiler.compile_all(&opts.src)
144+
match compiler.compile_all(&opts.src) {
145+
Ok(()) => println!("Lint successful"),
146+
Err(_) => {}
147+
}
148+
Ok(())
145149
}
146150
None => Ok(()),
147151
}

0 commit comments

Comments
 (0)