fix(oxlint): properly report error (#3889)

This fixes an incorrect error formatting in the lint runner logic.
This commit is contained in:
Luca Bruno 2024-06-24 23:46:56 +02:00 committed by GitHub
parent 328445b4ca
commit 5902331cac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}"),
};
}
};