From 51bc8710395b0be4afbaadd8b619ec884e742f48 Mon Sep 17 00:00:00 2001 From: Luca BRUNO Date: Mon, 24 Jun 2024 16:11:29 +0200 Subject: [PATCH] fix(oxlint): properly report error This fixes an incorrect error formatting in the lint runner logic. --- apps/oxlint/src/lint/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/oxlint/src/lint/mod.rs b/apps/oxlint/src/lint/mod.rs index 9f6a2a45d42ab..777fdfee31d8b 100644 --- a/apps/oxlint/src/lint/mod.rs +++ b/apps/oxlint/src/lint/mod.rs @@ -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}"), }; } };