Skip to content

Commit c0e4bb6

Browse files
authored
Merge pull request #4427 from anmonteiro/patch-1
Better error message for non-existing module in `sources[n].public`
2 parents f48c4c8 + 0c21a31 commit c0e4bb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jscomp/bsb/bsb_parse_sources.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ let collect_pub_modules
7171
set := Set_string.add !set str
7272
else
7373
Bsb_log.warn
74-
"@{<warning>IGNORED@} %S in public is ignored since it is not\
75-
an existing module@." str
74+
"@{<warning>IGNORED@}: %S in public is not an existing module \
75+
and has been ignored@." str
7676
| _ ->
7777
Bsb_exception.errorf
7878
~loc:(Ext_json.loc_of v)
79-
"public excpect a list of strings"
79+
"public expects a list of strings"
8080
done ;
8181
!set
8282

@@ -502,4 +502,4 @@ let clean_re_js root =
502502
end
503503
| _ -> ()
504504
| exception _ -> ()
505-
505+

0 commit comments

Comments
 (0)