additional tweaks to formatting of errors

This commit is contained in:
David Kennedy 2023-09-26 10:37:10 -04:00
parent a15dec1968
commit 4700904169
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -750,7 +750,7 @@ class DomainAdmin(ListHeaderAdmin):
if err.code:
self.message_user(
request,
"Error placing the hold with the registry: {err}",
f"Error placing the hold with the registry: {err}",
messages.ERROR,
)
elif err.is_connection_error():
@ -783,7 +783,13 @@ class DomainAdmin(ListHeaderAdmin):
if err.code:
self.message_user(
request,
"Error removing the hold in the registry: {err}",
f"Error removing the hold in the registry: {err}",
messages.ERROR,
)
elif err.is_connection_error():
self.message_user(
request,
"Error connecting to the registry",
messages.ERROR,
)
else: