File tree Expand file tree Collapse file tree
translate-messages/src/translate_messages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 "tip_IT_HAS_VALID_JSON" : { "message" : " it contains valid JSON" },
2121 "warn_CONFIG_EXISTS_AT" : { "message" : " Config already exists at" },
2222 "warn_DIR_NOT_FOUND" : { "message" : " Unable to locate directory" },
23+ "err_PARSE_FAILED" : { "message" : " Failed to parse" },
2324 "err_TRANSLATE_FAILED_FOR_KEY" : { "message" : " Translation failed for key" },
2425 "err_EN_LOC_NOT_FOUND_AT" : { "message" : " English locale not found at" }
2526}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def src_msgs(cli):
4343 try :
4444 cli .en_msgs = data .json .read (cli .en_path )
4545 except Exception as err :
46- log .error (f'Failed to parse { cli .en_path } : { err } ' )
46+ log .error (f'{ cli . msgs . err_PARSE_FAILED } { cli .en_path } : { err } ' )
4747 log .tip (f'{ cli .msgs .tip_MAKE_SURE } { cli .msgs .tip_IT_HAS_VALID_JSON } ' )
4848 sys .exit (1 )
4949
You can’t perform that action at this time.
0 commit comments