Skip to content

Commit feeaa73

Browse files
committed
better error message to understand
1 parent 738043f commit feeaa73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jscomp/core/lam_compile_primitive.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ let translate output_prefix module_system loc (cxt : Lam_compile_context.t)
114114
match module_of_expression e.expression_desc with
115115
| [ module_ ] -> module_
116116
| _ -> Location.raise_errorf ~loc
117-
"Invalid argument: Dynamic import requires a module or a module value as its argument. Passing a value or local module is not allowed."
117+
"Invalid argument: Dynamic import requires a module or module value that is a file as argument. Passing a value or local module is not allowed."
118118
in
119119

120120
let path =

0 commit comments

Comments
 (0)