Skip to content

Commit

Permalink
Merge pull request #706 from Fefbug/master
Browse files Browse the repository at this point in the history
use NetworkError code in aws-cognito-identity
  • Loading branch information
mlabieniec committed Apr 24, 2018
2 parents 257a41a + c0b7b9e commit 36b5411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amazon-cognito-identity-js/src/Client.js
Expand Up @@ -82,7 +82,7 @@ export default class Client {
// otherwise check if error is Network error
} else if (err instanceof Error && err.message === 'Network error') {
error = {
code: err.name,
code: 'NetworkError',
name: err.name,
message: err.message,
};
Expand Down

0 comments on commit 36b5411

Please sign in to comment.