mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 19:20:47 +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:
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue