Code-the-Change-YYC / hackathon-management-tool

1 stars 0 forks source link

Custom backend function return error codes, this is non GraphQL-like #81

Open ideen1 opened 4 months ago

ideen1 commented 4 months ago

We should switch these to all return errors[] in case of an error. (Not 400, 403, etc.) We can place the error code as part of the errors object text.

Likewise all front end methods calling these should be doing our regular check for if(res.errors) throw Error....