mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +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,
|
||||
loc,
|
||||
switch_lang!(
|
||||
"japanese" => format!("変数{YELLOW}{name}{RESET}に再代入されています"),
|
||||
"simplified_chinese" => format!("不能为变量{YELLOW}{name}{RESET}分配两次"),
|
||||
"traditional_chinese" => format!("不能為變量{YELLOW}{name}{RESET}分配兩次"),
|
||||
"english" => format!("cannot assign twice to the variable {YELLOW}{name}{RESET}"),
|
||||
"japanese" => format!("変数{YELLOW}{name}{RESET}に複数回代入することはできません"),
|
||||
"simplified_chinese" => format!("不能为变量{YELLOW}{name}{RESET}分配多次"),
|
||||
"traditional_chinese" => format!("不能為變量{YELLOW}{name}{RESET}分配多次"),
|
||||
"english" => format!("variable {YELLOW}{name}{RESET} cannot be assigned more than once"),
|
||||
),
|
||||
None,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue