Skip to content

Commit 288e508

Browse files
committed
more informative error msg
1 parent a17aa19 commit 288e508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/ml/typedecl.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,11 +1844,11 @@ let tys_of_constr_args = function
18441844

18451845
let report_error ppf = function
18461846
| Repeated_parameter ->
1847-
fprintf ppf "A type parameter occurs several times"
1847+
fprintf ppf "A type parameter occurs several times. If this is a component, check duplicated props"
18481848
| Duplicate_constructor s ->
18491849
fprintf ppf "Two constructors are named %s" s
18501850
| Duplicate_label s ->
1851-
fprintf ppf "Two labels are named %s" s
1851+
fprintf ppf "Two labels are named %s. If this is a component, check duplicated props" s
18521852
| Recursive_abbrev s ->
18531853
fprintf ppf "The type abbreviation %s is cyclic" s
18541854
| Cycle_in_def (s, ty) ->

0 commit comments

Comments
 (0)