Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tb: rephrase variant types' collision check error messages #25

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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