From 56b430fc144f34553f8d8a73a340e75f09cf7c5a Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 28 Oct 2024 19:24:32 +0100 Subject: [PATCH] fix: show error code --- cli/tools/lint/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli/tools/lint/mod.rs b/cli/tools/lint/mod.rs index b3b5e938ff..a7072fd994 100644 --- a/cli/tools/lint/mod.rs +++ b/cli/tools/lint/mod.rs @@ -438,7 +438,13 @@ impl WorkspaceLinter { .url .as_ref() .map(|x| x.to_string()), - code: "foo".to_string(), + code: msg + .error + .code + .number + .as_ref() + .map(|x| x.to_string()) + .unwrap(), fixes: vec![], hint: None, info: vec![],