Improve text of an exceptrion

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
This commit is contained in:
Dave Pearson
2022-11-03 15:17:56 +00:00
committed by GitHub
parent abad0a311a
commit 0ff550c481

View File

@@ -1333,7 +1333,7 @@ class App(Generic[ReturnType], DOMNode):
# the rest of the code.
if before is not None and after is not None:
raise AppError(
"A child can only be registered before or after, not before and after"
"Only one of 'before' and 'after' may be specified."
)
# If we don't already know about this widget...