Skip to content

Commit 41382f7

Browse files
committed
better error msg
1 parent b825937 commit 41382f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

res_syntax/src/reactjs_jsx_v4.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ let makeLabelDecls namedTypeList =
304304
in
305305
match duplicatedProp with
306306
| Some (label, loc) ->
307-
React_jsx_common.raiseError ~loc "JSX: Duplicated prop %s" label
307+
React_jsx_common.raiseError ~loc "JSX: found the duplicated prop `%s`" label
308308
| None ->
309309
namedTypeList
310310
|> List.map (fun (isOptional, label, attrs, loc, interiorType) ->

0 commit comments

Comments
 (0)