mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-08-03 22:08:17 +00:00
Add error documents
This commit is contained in:
parent
f46b33d243
commit
c3c1615690
2 changed files with 13 additions and 2 deletions
|
@ -5,7 +5,6 @@ use erg_compiler::error::CompileError;
|
|||
|
||||
pub(crate) fn reassign_func_error(
|
||||
input: Input,
|
||||
errno: usize,
|
||||
loc: Location,
|
||||
caused_by: String,
|
||||
name: &str,
|
||||
|
@ -19,7 +18,7 @@ pub(crate) fn reassign_func_error(
|
|||
"traditional_chinese" => format!("{name}已宣告,已被引用。不建議再次賦值"),
|
||||
"english" => format!("{name} has already been declared and referenced. It is not recommended to reassign such a function"),
|
||||
),
|
||||
errno,
|
||||
1,
|
||||
ErrorKind::AssignError,
|
||||
loc,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue