diff options
Diffstat (limited to 'js/codeq/signup.js')
-rw-r--r-- | js/codeq/signup.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/codeq/signup.js b/js/codeq/signup.js index 7f28e9f..a0ac4de 100644 --- a/js/codeq/signup.js +++ b/js/codeq/signup.js @@ -77,9 +77,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ throw new Error(data.message); } }) - .fail(function (reason) { - codeq.log.error('Signup failed: ' + reason, reason); - alert('Signup failed: ' + reason); + .fail(function (error) { + var message = 'Signup failed: ' + error.message; + codeq.log.error(message, error); + alert(message); }) .done(); } |