mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
make error message more clear
This commit is contained in:
parent
9f9d747e9b
commit
96ec4b1004
@ -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