Readable error messages

This commit is contained in:
Shunsuke Shibayama 2022-09-14 21:46:12 +09:00
parent 6593bf9e2e
commit 615d7937d9
4 changed files with 58 additions and 3 deletions

View file

@ -1145,6 +1145,7 @@ passed keyword args: {RED}{kw_args_len}{RESET}"
proj: &Type,
loc: Location,
caused_by: AtomicStr,
hint: Option<AtomicStr>,
) -> Self {
Self::new(
ErrorCore::new(
@ -1157,7 +1158,7 @@ passed keyword args: {RED}{kw_args_len}{RESET}"
"traditional_chinese" => format!("{proj}沒有候選項"),
"english" => format!("no candidate for {proj}"),
),
None,
hint,
),
caused_by,
)