Skip to content

Commit

Permalink
fix(oxlint): properly report error (#3889)
Browse files Browse the repository at this point in the history
This fixes an incorrect error formatting in the lint runner logic.
  • Loading branch information
lucab committed Jun 24, 2024
1 parent 328445b commit 5902331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/oxlint/src/lint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Runner for LintRunner {
let mut err = String::new();
handler.render_report(&mut err, diagnostic.as_ref()).unwrap();
return CliRunResult::InvalidOptions {
message: "Failed to parse configuration file.\n{err}".to_string(),
message: format!("Failed to parse configuration file.\n{err}"),
};
}
};
Expand Down

0 comments on commit 5902331

Please sign in to comment.