Fix error reporting links

This commit is contained in:
Shunsuke Shibayama 2022-08-19 12:44:37 +09:00
parent 580ccddfe5
commit 190c9ba59f
3 changed files with 20 additions and 20 deletions

View file

@ -326,10 +326,10 @@ impl ErrorCore {
CompilerSystemError, CompilerSystemError,
loc, loc,
switch_lang!( switch_lang!(
"japanese" => format!("これはErgのバグです、開発者に報告して下さい (https://github.com/...)\n{fn_name}:{line}より発生"), "japanese" => format!("これはErgのバグです、開発者に報告して下さい (https://github.com/erg-lang/erg)\n{fn_name}:{line}より発生"),
"simplified_chinese" => format!("这是Erg的bug请报告给https://github.com/...\n原因来自:{fn_name}:{line}"), "simplified_chinese" => format!("这是Erg的bug请报告给https://github.com/erg-lang/erg\n原因来自:{fn_name}:{line}"),
"traditional_chinese" => format!("这是Erg的bug请报告给https://github.com/...\n原因来自:{fn_name}:{line}"), "traditional_chinese" => format!("这是Erg的bug请报告给https://github.com/erg-lang/erg\n原因来自:{fn_name}:{line}"),
"english" => format!("this is a bug of Erg, please report it to https://github.com/...\ncaused from: {fn_name}:{line}"), "english" => format!("this is a bug of Erg, please report it to https://github.com/erg-lang/erg\ncaused from: {fn_name}:{line}"),
), ),
None, None,
) )

View file

@ -144,10 +144,10 @@ impl CompileError {
CompilerSystemError, CompilerSystemError,
loc, loc,
switch_lang!( switch_lang!(
"japanese" => format!("これはErg compilerのバグです、開発者に報告して下さい (https://github.com/...)\n{fn_name}:{line}より発生"), "japanese" => format!("これはErg compilerのバグです、開発者に報告して下さい (https://github.com/erg-lang/erg)\n{fn_name}:{line}より発生"),
"simplified_chinese" => format!("这是Erg编译器的错误请报告给https://github.com/...\n原因来自:{fn_name}:{line}"), "simplified_chinese" => format!("这是Erg编译器的错误请报告给https://github.com/erg-lang/erg\n原因来自:{fn_name}:{line}"),
"traditional_chinese" => format!("這是Erg編譯器的錯誤請報告給https://github.com/...\n原因來自:{fn_name}:{line}"), "traditional_chinese" => format!("這是Erg編譯器的錯誤請報告給https://github.com/erg-lang/erg\n原因來自:{fn_name}:{line}"),
"english" => format!("this is a bug of the Erg compiler, please report it to https://github.com/...\ncaused from: {fn_name}:{line}"), "english" => format!("this is a bug of the Erg compiler, please report it to https://github.com/erg-lang/erg\ncaused from: {fn_name}:{line}"),
), ),
None, None,
), ),
@ -170,16 +170,16 @@ impl CompileError {
loc, loc,
switch_lang!( switch_lang!(
"japanese" => format!("スタックの要素数が異常です (要素数: {stack_len}, ブロックID: {block_id})\n\ "japanese" => format!("スタックの要素数が異常です (要素数: {stack_len}, ブロックID: {block_id})\n\
(https://github.com/...)\n\ (https://github.com/erg-lang/erg)\n\
{fn_name}"), {fn_name}"),
"simplified_chinese" => format!("堆栈中的元素数无效(元素数:{stack_len}块id{block_id}\n\ "simplified_chinese" => format!("堆栈中的元素数无效(元素数:{stack_len}块id{block_id}\n\
Erg (https://github.com/...)\n\ Erg (https://github.com/erg-lang/erg)\n\
{fn_name}"), {fn_name}"),
"traditional_chinese" => format!("堆棧中的元素數無效(元素數:{stack_len}塊id{block_id}\n\ "traditional_chinese" => format!("堆棧中的元素數無效(元素數:{stack_len}塊id{block_id}\n\
Erg (https://github.com/...)\n\ Erg (https://github.com/erg-lang/erg)\n\
{fn_name}"), {fn_name}"),
"english" => format!("the number of elements in the stack is invalid (num of elems: {stack_len}, block id: {block_id})\n\ "english" => format!("the number of elements in the stack is invalid (num of elems: {stack_len}, block id: {block_id})\n\
this is a bug of the Erg compiler, please report it (https://github.com/...)\n\ this is a bug of the Erg compiler, please report it (https://github.com/erg-lang/erg)\n\
caused from: {fn_name}"), caused from: {fn_name}"),
), ),
None, None,
@ -250,10 +250,10 @@ impl TyCheckError {
CompilerSystemError, CompilerSystemError,
loc, loc,
switch_lang!( switch_lang!(
"japanese" => format!("これはErg compilerのバグです、開発者に報告して下さい (https://github.com/...)\n{fn_name}:{line}より発生"), "japanese" => format!("これはErg compilerのバグです、開発者に報告して下さい (https://github.com/erg-lang/erg)\n{fn_name}:{line}より発生"),
"simplified_chinese" => format!("这是Erg编译器的错误请报告给https://github.com/...\n原因来自:{fn_name}:{line}"), "simplified_chinese" => format!("这是Erg编译器的错误请报告给https://github.com/erg-lang/erg\n原因来自:{fn_name}:{line}"),
"traditional_chinese" => format!("這是Erg編譯器的錯誤請報告給https://github.com/...\n原因來自:{fn_name}:{line}"), "traditional_chinese" => format!("這是Erg編譯器的錯誤請報告給https://github.com/erg-lang/erg\n原因來自:{fn_name}:{line}"),
"english" => format!("this is a bug of the Erg compiler, please report it to https://github.com/...\ncaused from: {fn_name}:{line}"), "english" => format!("this is a bug of the Erg compiler, please report it to https://github.com/erg-lang/erg\ncaused from: {fn_name}:{line}"),
), ),
None, None,
), ),

View file

@ -26,10 +26,10 @@ impl LexError {
CompilerSystemError, CompilerSystemError,
loc, loc,
switch_lang!( switch_lang!(
"japanese" => format!("これはErg compilerのバグです、開発者に報告して下さい (https://github.com/mtshiba/erg)\n{fn_name}:{line}より発生"), "japanese" => format!("これはErg compilerのバグです、開発者に報告して下さい (https://github.com/erg-lang/erg)\n{fn_name}:{line}より発生"),
"simplified_chinese" => format!("这是Erg编译器的一个错误请报告给https://github.com/mtshiba/erg\n原因来自:{fn_name}:{line}"), "simplified_chinese" => format!("这是Erg编译器的一个错误请报告给https://github.com/erg-lang/erg\n原因来自:{fn_name}:{line}"),
"traditional_chinese" => format!("這是Erg編譯器的一個錯誤請報告給https://github.com/mtshiba/erg\n原因來自:{fn_name}:{line}"), "traditional_chinese" => format!("這是Erg編譯器的一個錯誤請報告給https://github.com/erg-lang/erg\n原因來自:{fn_name}:{line}"),
"english" => format!("this is a bug of the Erg compiler, please report it to https://github.com/mtshiba/erg\ncaused from: {fn_name}:{line}"), "english" => format!("this is a bug of the Erg compiler, please report it to https://github.com/erg-lang/erg\ncaused from: {fn_name}:{line}"),
), ),
None, None,
)) ))