fix: improve error handling

This commit is contained in:
Barrett Ruth 2025-10-05 16:06:08 -04:00
parent 9134a0742b
commit a0b5264761
6 changed files with 33 additions and 26 deletions

View file

@ -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