Skip to content

Commit 49a240b

Browse files
committed
provide simple example of the error
1 parent c61cb7a commit 49a240b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dash/development/base_component.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ def __init__(self, **kwargs):
136136
raise TypeError(
137137
error_string_prefix
138138
+ " detected a Component for a prop other than `children`\n"
139+
+ f"Prop {k} has value {v!r}\n\n"
139140
+ "Did you forget to wrap multiple `children` in an array?\n"
140-
+ f"Prop {k} has value {v!r}\n"
141+
+ "For example, it must be html.Div([\"a\", \"b\", \"c\"]) not html.Div(\"a\", \"b\", \"c\")\n"
141142
)
142143

143144
if k == "id":

0 commit comments

Comments
 (0)