@wraps.dev/cli 2.18.5 → 2.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -18406,8 +18406,11 @@ async function connect2(options) {
|
|
|
18406
18406
|
try {
|
|
18407
18407
|
const ids = await scanSESIdentities(r);
|
|
18408
18408
|
return ids.length > 0 ? r : null;
|
|
18409
|
-
} catch {
|
|
18410
|
-
|
|
18409
|
+
} catch (error) {
|
|
18410
|
+
if (error instanceof Error && (error.name === "AccessDeniedException" || error.name === "UnrecognizedClientException" || error.message.includes("is not authorized"))) {
|
|
18411
|
+
return null;
|
|
18412
|
+
}
|
|
18413
|
+
throw error;
|
|
18411
18414
|
}
|
|
18412
18415
|
})
|
|
18413
18416
|
);
|