Skip to content

Commit

Permalink
tb: rephrase variant types' collision check error messages
Browse files Browse the repository at this point in the history
New messages are clearer and consistent with
`check_struct_names_collision` function.
  • Loading branch information
r-bk committed Sep 7, 2024
1 parent 63bae20 commit 528a9fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/tighterror-build/src/parser/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,23 +202,23 @@ fn check_variant_type_names_collision_impl(m: &ModuleSpec, e: &ErrorSpec) -> Res

if name == m.err_name() {
log::error!(
"{} equals error type name: {} {}",
"variant type name equals module's error type name `{}`: {} {}",
kws::ERR_NAME,
e.name,
name
);
return NAME_COLLISION.into();
} else if name == m.err_cat_name() {
log::error!(
"{} equals error category name: {} {}",
"variant type name equals module's error category name `{}`: {} {}",
kws::ERR_CAT_NAME,
e.name,
name
);
return NAME_COLLISION.into();
} else if name == m.err_kind_name() {
log::error!(
"{} equals error kind name: {} {}",
"variant type name equals module's error kind name `{}`: {} {}",
kws::ERR_KIND_NAME,
e.name,
name
Expand Down

0 comments on commit 528a9fb

Please sign in to comment.