@wraps.dev/cli 2.19.2 → 2.19.4

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
@@ -7968,11 +7968,23 @@ async function createMailManagerArchive(config2) {
7968
7968
  resolve(name);
7969
7969
  });
7970
7970
  });
7971
+ if (!configSetName) {
7972
+ throw new Error(
7973
+ "Failed to resolve SES configuration set name from Pulumi output"
7974
+ );
7975
+ }
7971
7976
  const putArchivingOptionsCommand = new PutConfigurationSetArchivingOptionsCommand({
7972
7977
  ConfigurationSetName: configSetName,
7973
7978
  ArchiveArn: archiveArn
7974
7979
  });
7975
- await sesClient.send(putArchivingOptionsCommand);
7980
+ try {
7981
+ await sesClient.send(putArchivingOptionsCommand);
7982
+ } catch (error) {
7983
+ const detail = error instanceof Error ? error.message : String(error);
7984
+ throw new Error(
7985
+ `Failed to link Mail Manager archive to SES config set '${configSetName}' in ${region}: ${detail}`
7986
+ );
7987
+ }
7976
7988
  if (!(archiveId && archiveArn)) {
7977
7989
  throw new Error("Failed to get archive ID or ARN");
7978
7990
  }