Open gparuthi opened 3 years ago
I think swarmai does have codes, so we just should be able to mirror those exceptions...unless maybe the Internal error...that is some that shouldnt occur and thus the user should never see the details
https://github.com/ArboreumDev/swarmai/blob/development/app/routes/swarmai.py
the err.msg they return should also be informative....
or were you imiagining an APIException-class?
Oh thats true, internal errors should not be shown to users. We should find a way to get those errors logged somewhere.
Btw I added a related issue #153 , not sure what we can add here
https://github.com/ArboreumDev/frontend/blob/8345bff7a812e3ca3377f095cd79516e731bcea4/src/lib/api.ts#L55-L55