mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-03 05:54:33 +00:00
Merge pull request #208 from C-BJ/main
compiler: Improve error messages
This commit is contained in:
commit
40247a0891
1 changed files with 4 additions and 4 deletions
|
@ -1353,10 +1353,10 @@ impl LowerError {
|
||||||
AssignError,
|
AssignError,
|
||||||
loc,
|
loc,
|
||||||
switch_lang!(
|
switch_lang!(
|
||||||
"japanese" => format!("変数{YELLOW}{name}{RESET}に再代入されています"),
|
"japanese" => format!("変数{YELLOW}{name}{RESET}に複数回代入することはできません"),
|
||||||
"simplified_chinese" => format!("不能为变量{YELLOW}{name}{RESET}分配两次"),
|
"simplified_chinese" => format!("不能为变量{YELLOW}{name}{RESET}分配多次"),
|
||||||
"traditional_chinese" => format!("不能為變量{YELLOW}{name}{RESET}分配兩次"),
|
"traditional_chinese" => format!("不能為變量{YELLOW}{name}{RESET}分配多次"),
|
||||||
"english" => format!("cannot assign twice to the variable {YELLOW}{name}{RESET}"),
|
"english" => format!("variable {YELLOW}{name}{RESET} cannot be assigned more than once"),
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue