Commit 31849b3a authored by Sean Hammond's avatar Sean Hammond

Use reason instead of responseErrorMessage

When catching a non-JSON error response from the server, when trying to
register a user.
parent d7750027
...@@ -21,9 +21,8 @@ class AuthController ...@@ -21,9 +21,8 @@ class AuthController
try try
{errors, reason} = response.data {errors, reason} = response.data
catch catch
form.responseErrorMessage = "Oops, something went wrong on the server. reason = "Oops, something went wrong on the server. Please try again
Please try again later!" later!"
return
formHelpers.applyValidationErrors(form, errors, reason) formHelpers.applyValidationErrors(form, errors, reason)
this.submit = (form) -> this.submit = (form) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment