searleser97 / cpbooster

Competitive Programming Booster
GNU General Public License v3.0
144 stars 30 forks source link

Wrong error message #85

Open user202729 opened 1 year ago

user202729 commented 1 year ago

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