Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

avoid server error 500 from Mesomb #9

Closed
wants to merge 1 commit into from

Conversation

MuluhGodson
Copy link
Contributor

In case a user tries to withdraw a negative amount or an amount greater than in their account, Mesomb breaks and returns a server error 500. This little edit enables that the model is still returned in this case so that in the controller if the transaction wasn't successful one can return an error message without the app breaking as caused by MeSomb error 500 HTTP response.

In case a user tries to withdraw a negative amount or an amount greater than in their account, Mesomb breaks and returns a server error 500. This little edit enables that the model is still returned in this case so that in the controller if the transaction wasn't successful one can return an error message without the app breaking as caused by MeSomb error 500 HTTP response.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant