Skip to content

Commit

Permalink
Checkpoint error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMMM committed Oct 17, 2017
1 parent 77563f4 commit 2ded716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/v1/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Request.prototype.errorMiddleware = function (response) {
var json = response.body;
if (json.spam)
throw new Exceptions.ActionSpamError(json);
if (json.message == 'checkpoint_required')
if (json.message == 'challenge_required')
throw new Exceptions.CheckpointError(json, this.session);
if (json.message == 'login_required')
throw new Exceptions.AuthenticationError("Login required to process this request");
Expand Down

0 comments on commit 2ded716

Please sign in to comment.