summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-04-06 10:36:33 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-04-06 10:36:33 -0400
commited5783772dff7bdef9de381dd0fb5c70adc89995 (patch)
tree110bc167df38b82a4b4818393258a7e529e09ea8 /lib/sqlalchemy/orm/interfaces.py
parent86bbef51d79af345cc3a5848774dad9483022153 (diff)
downloadsqlalchemy-ed5783772dff7bdef9de381dd0fb5c70adc89995.tar.gz
- Still more wording adjustments when a query option
can't find the target entity. Explain that the path must be from one of the root entities.
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/interfaces.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py
index fad8a49dd..fec9d45fc 100644
--- a/lib/sqlalchemy/orm/interfaces.py
+++ b/lib/sqlalchemy/orm/interfaces.py
@@ -437,7 +437,9 @@ class PropertyOption(MapperOption):
if raiseerr:
raise sa_exc.ArgumentError(
"Can't find property '%s' on any entity "
- "specified in this Query." % (token,)
+ "specified in this Query. Note the full path "
+ "from root (%s) to target entity must be specified."
+ % (token, ",".join(str(x) for x in query._mapper_entities))
)
else:
return None