fix: improve error handling
This commit is contained in:
parent
9134a0742b
commit
a0b5264761
6 changed files with 33 additions and 26 deletions
|
|
@ -136,7 +136,11 @@ function M.handle_command(opts)
|
|||
|
||||
if not (contest_data and contest_data.index_map and contest_data.index_map[problem_id]) then
|
||||
logger.log(
|
||||
("%s contest '%s' has no problem '%s'."):format(platform, contest_id, problem_id),
|
||||
("%s contest '%s' has no problem '%s'."):format(
|
||||
constants.PLATFORM_DISPLAY_NAMES[platform],
|
||||
contest_id,
|
||||
problem_id
|
||||
),
|
||||
vim.log.levels.ERROR
|
||||
)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue