Skip to content

Commit fbe0879

Browse files
authored
fixes typo in error message
1 parent b3d2462 commit fbe0879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jscomp/syntax/ast_external_attributes.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ let handle_attributes
272272
| _ -> Location.raise_errorf ~loc "expect label, optional, or unit here" )
273273
arg_types in
274274
if String.length prim_name <> 0 then
275-
Location.raise_errorf ~loc "[@@bs.obj] except empty name";
275+
Location.raise_errorf ~loc "[@@bs.obj] expect external names to be empty string";
276276
Obj_create labels(* Need fetch label here, for better error message *)
277277
| {set_index = true}
278278
->

0 commit comments

Comments
 (0)