mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
additional tweaks to formatting of errors
This commit is contained in:
parent
a15dec1968
commit
4700904169
1 changed files with 8 additions and 2 deletions
|
@ -750,7 +750,7 @@ class DomainAdmin(ListHeaderAdmin):
|
||||||
if err.code:
|
if err.code:
|
||||||
self.message_user(
|
self.message_user(
|
||||||
request,
|
request,
|
||||||
"Error placing the hold with the registry: {err}",
|
f"Error placing the hold with the registry: {err}",
|
||||||
messages.ERROR,
|
messages.ERROR,
|
||||||
)
|
)
|
||||||
elif err.is_connection_error():
|
elif err.is_connection_error():
|
||||||
|
@ -783,7 +783,13 @@ class DomainAdmin(ListHeaderAdmin):
|
||||||
if err.code:
|
if err.code:
|
||||||
self.message_user(
|
self.message_user(
|
||||||
request,
|
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,
|
messages.ERROR,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue