Skip to content

Commit a522140

Browse files
committed
added ENOENT error
1 parent 14afefe commit a522140

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ function getValidFeatureFlagSelectors(selectors?: SettingSelector[]): SettingSel
697697
}
698698

699699
function isFailoverableError(error: any): boolean {
700-
return isRestError(error) && (error.code === "ENOTFOUND" ||
700+
// ENOTFOUND: DNS lookup failed, ENOENT: no such file or directory
701+
return isRestError(error) && (error.code === "ENOTFOUND" || error.code === "ENOENT" ||
701702
(error.statusCode !== undefined && (error.statusCode === 401 || error.statusCode === 403 || error.statusCode === 408 || error.statusCode === 429 || error.statusCode >= 500)));
702703
}

0 commit comments

Comments
 (0)