Open mrWh1te opened 3 years ago
When it comes to Errors, the only standard set in this library is that you ONLY catch errors by using the errors()() BotAction
TBD:
Beyond that, logging of errors and warnings is to be handled either by the BotAction's themselves or through the errors()
BotAction.
Multiple instances in the code capture errors and provides safe fallbacks. This will increase debug work as the source of errors is obscure. This issue is in favor of changing the code to fail loudly. This will help devs find the source of the bug quicker
https://github.com/mrWh1te/Botmation/blob/5e07b5032793254cae425a06ac84102b16b2f1b6/src/botmation/actions/indexed-db.ts#L61
Determine a standard practice then document it:
logError()
orlogWarning()