poetapp / frost-api

Po.et's API Layer
https://api.poetnetwork.net
MIT License
24 stars 5 forks source link

fix: don't swallow errors in POST /accounts #921

Closed lautarodragan closed 5 years ago

lautarodragan commented 5 years ago

This endpoint currently returns "Account Already Exists" for any error that happens.

This PR fixes it, returning Internal Server Error (and logging it) for uncaught errors and only returning 409 when the there's an account with that email already,

poet-ci commented 5 years ago

:tada: This PR is included in version 1.28.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: