Skip to content

Commit df8c53e

Browse files
author
Rami Chowdhury
committed
Add more helpful error message
1 parent fc82a5f commit df8c53e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene_pydantic/converters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def find_graphene_type(
157157
raise ConversionError(
158158
"Don't know how to convert the Pydantic field "
159159
f"{field!r} ({field.type_}), could not resolve "
160-
"the forward reference."
160+
"the forward reference. Did you call `resolve_placeholders()`? "
161+
"See the README for more on forward references."
161162
)
162163
module_ns = sys.modules[sibling.__module__].__dict__
163164
resolved = type_._evaluate(module_ns, None)

0 commit comments

Comments
 (0)