cpbooster icon indicating copy to clipboard operation
cpbooster copied to clipboard

Wrong error message

Open user202729 opened this issue 2 years ago • 0 comments

cpbooster version: latest

Describe the bug When submission is unsuccessful the error message displayed is always You have submitted exactly the same code before even though the actual cause might be different.

Steps To Reproduce it

  1. Create a file very large (e.g. 100KB) that exceed Codeforces file size limit
  2. Submit it normally through cpbooster
  3. The error message above is shown

That is hard coded regardless of the actual error message:

https://github.com/searleser97/cpbooster/blob/bd69a3c4278dcb3a8d8f655b052354b7e5eee934/app/src/Submit/OnlineJudgeFactory/Codeforces.ts#L46

Expected behavior The correct error message is shown

user202729 avatar Feb 26 '23 08:02 user202729