mirror of
https://github.com/django/django.git
synced 2024-11-24 20:07:01 +01:00
make error message more clear
This commit is contained in:
parent
fb5abdc389
commit
ff3b2dfe50
@ -273,7 +273,7 @@ class AsyncConnectionHandler:
|
||||
alias = self[using]
|
||||
if len(alias.connections) == 0:
|
||||
raise ConnectionDoesNotExist(
|
||||
f"There are no connections using the '{using}' alias."
|
||||
f"There are no async connections using the '{using}' alias."
|
||||
)
|
||||
return alias.connections[-1]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user