Vetrox / squirrelbot

Ein discord Bot für die Fachschaft des FB 12
MIT License
2 stars 1 forks source link

Error handling #89

Closed Baseng0815 closed 3 years ago

Baseng0815 commented 3 years ago

Add more descriptive error messages because this does not help much:

21/1/2021 21:58:6   [api]      KRITISCHER DATENBANK ERROR!!! chmgr_userchannels

This means modifying custom error types to take additional information and passing them properly when they are thrown. An example would be

21/1/2021 22:14:2   [api]      critical database error at 'chmgr_userchannels': BotError: param key length=6 not equal to this.keys.length=5
roscha444 commented 3 years ago

in progress already #83 #85