mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Improve text of an exceptrion
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user