Skip to content

Commit

Permalink
Fix challenge url
Browse files Browse the repository at this point in the history
  • Loading branch information
petemud authored Jan 20, 2018
1 parent 66ab6c4 commit a9cbe18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/v1/exceptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ function CheckpointError(json, session) {
this.url = json.checkpoint_url;
if(!this.url && _.isObject(json.checkpoint) && _.isString(json.checkpoint.url))
this.url = json.checkpoint.url;
if(!this.url && _.isObject(json.challenge) && _.isString(json.challenge.url))
this.url = json.challenge.url;
if(!this.url)
this.url = routes.getWebUrl('challenge')
this.session = session;
Expand Down Expand Up @@ -381,4 +383,4 @@ function MediaUnavailableError() {
this.message = "Media is unavailable";
}
util.inherits(MediaUnavailableError, APIError);
exports.MediaUnavailableError = MediaUnavailableError;
exports.MediaUnavailableError = MediaUnavailableError;

0 comments on commit a9cbe18

Please sign in to comment.