Skip to content

Commit

Permalink
chore: update error/mod lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost committed Oct 7, 2024
1 parent 3d7013d commit 2648325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub enum CompilationError {

// TODO, give the specific recommended plugin of this kind of module
// #[error("Parse `{resolved_path}` failed.\n {msg}\nPotential Causes:\n1.The module have syntax error.\n2.This kind of module is not supported, you may need plugins to support it\n")]
#[error("{}", serde_json::to_string(&serialize_parse_error(&resolved_path, &msg))
#[error("{}", serde_json::to_string(&serialize_parse_error(resolved_path, msg))
.map_err(|_| "Failed to serialize parse error type message".to_string())
.unwrap_or_else(|e| e))]
ParseError { resolved_path: String, msg: String },
Expand Down

0 comments on commit 2648325

Please sign in to comment.