Skip to content

Commit 9e4d9bc

Browse files
authored
Merge pull request #619 from bloomberg/bobzhang-patch-1
fixes typo in error message
2 parents b3d2462 + fbe0879 commit 9e4d9bc

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)