mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
Readable error messages
This commit is contained in:
parent
6593bf9e2e
commit
615d7937d9
4 changed files with 58 additions and 3 deletions
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue