Skip to content

Commit f679cf6

Browse files
authored
expand handling of getaddrinfo ENOTFOUND errors (#2330)
1 parent 95942c5 commit f679cf6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/hip-buses-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/platform-core': patch
3+
---
4+
5+
expand handling of getaddrinfo ENOTFOUND errors

packages/platform-core/src/errors/amplify_error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const isYargsValidationError = (err?: Error): boolean => {
229229
};
230230

231231
const isENotFoundError = (err?: Error): boolean => {
232-
return !!err && err.message.startsWith('getaddrinfo ENOTFOUND');
232+
return !!err && err.message.includes('getaddrinfo ENOTFOUND');
233233
};
234234

235235
const isSyntaxError = (err?: Error): boolean => {

0 commit comments

Comments
 (0)