Skip to content

Commit

Permalink
🐛 Do not produce multiline exceptions
Browse files Browse the repository at this point in the history
Co-authored-by: Jim Madge <jim+github@jmadge.com>
  • Loading branch information
jemrobinson and JimMadge authored Jun 25, 2024
1 parent deb3cb7 commit 0e71103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_safe_haven/infrastructure/programs/imperative_shm.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def deploy(self) -> None:
key_vault_name=keyvault.name,
)
except DataSafeHavenAzureError as exc:
msg = f"Failed to deploy resources needed by Pulumi.\n{exc}"
msg = f"Failed to deploy resources needed by Pulumi."
raise DataSafeHavenAzureError(msg) from exc

# Deploy common resources that will be needed by SREs
Expand All @@ -108,7 +108,7 @@ def deploy(self) -> None:
zone_name=self.config.shm.fqdn,
)
except DataSafeHavenAzureError as exc:
msg = f"Failed to create SHM resources.\n{exc}"
msg = f"Failed to create SHM resources."
raise DataSafeHavenAzureError(msg) from exc

# Add the SHM domain to the Entra ID via interactive GraphAPI
Expand Down

0 comments on commit 0e71103

Please sign in to comment.