Skip to content

Commit

Permalink
format error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
SkymanOne committed Feb 25, 2024
1 parent a36ed13 commit 386a9be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/semantics/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ impl ContractDefinition {
GlobalSymbol::Function(_) => "function",
};
let err_msg = format!(
"The {} has already been defined {} earlier.",
ident.name, error_type
"The {} `{}` has already been defined earlier.",
error_type, ident.name
);

self.diagnostics
Expand Down

0 comments on commit 386a9be

Please sign in to comment.