storj-archived / bridge-gui

Deprecated
https://app.storj.io
GNU Affero General Public License v3.0
11 stars 8 forks source link

Fixes error handling on user creation #116

Closed barbaraliau closed 7 years ago

barbaraliau commented 7 years ago

Really this is more of a hot-fix. client.api.createClient should take in a success and error callback in its .then() method, but it is not using the error callback even when an error is sent.

Manually checks for a result.error field.

This will prevent billing route from being called if there's an error signing up the user with bridge.