Ansteorra / KMP

Kingdom Management Platform
Other
4 stars 2 forks source link

Service calls should provide more detail than true/false when they error. #239

Open jhandel opened 1 month ago

jhandel commented 1 month ago
          We could open a new Issue for each controller to update each API's to return {success: bool , error?:message string , details?:{}} and the consumers to use res->success and the flash messages res->error. That would leave us in a good spot to handle multiple error types from the same action.

Originally posted by @Chrisincr in https://github.com/Ansteorra/KMP/issues/229#issuecomment-2417266938