Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cheedep committed Apr 7, 2018
1 parent 6d518c5 commit dc14b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amazon-cognito-identity-js/src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default class Client {
return callback(error);
})
.catch(err => {
// default to return 'UnknownError'
let error = { code: 'UnknownError', message: 'Unkown error' };

// first check if we have a service error
Expand All @@ -85,7 +86,6 @@ export default class Client {
name: err.name,
message: err.message,
};
// finally case will return 'UnknownError'
}
return callback(error);
});
Expand Down

0 comments on commit dc14b57

Please sign in to comment.