Skip to content

Commit 96693e9

Browse files
authored
Improve error message (#6787)
1 parent effa75b commit 96693e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jscomp/ext/warnings.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ let message = function
477477
| Constraint_on_gadt ->
478478
"Type constraints do not apply to GADT cases of variant types."
479479
| Bs_unused_attribute s ->
480-
"Unused attribute: " ^ s
480+
"Unused attribute: @" ^ s
481481
^ "\n\
482-
This means such annotation is not annotated properly. \n\
483-
for example, some annotations is only meaningful in externals \n"
482+
This attribute has no effect here.\n\
483+
For example, some attributes are only meaningful in externals.\n"
484484
| Bs_polymorphic_comparison ->
485485
"Polymorphic comparison introduced (maybe unsafe)"
486486
| Bs_ffi_warning s -> "FFI warning: " ^ s

0 commit comments

Comments
 (0)