Skip to content

Commit 34b7f45

Browse files
committed
Consistent error message
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 60bce9a commit 34b7f45

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/jbuild.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,8 @@ module Library = struct
844844
if dune_version >= (1, 1) then
845845
name
846846
else
847-
of_sexp_error loc "name field cannot be omitted before version 1.1"
847+
of_sexp_error loc "name field cannot be omitted before version \
848+
1.1 of the dune language"
848849
| None, None ->
849850
of_sexp_error loc (
850851
if dune_version >= (1, 1) then

test/blackbox-tests/test-cases/no-name-field/run.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ the name field can be omitted for libraries when public_name is present
55
this isn't possible for older syntax <= (1, 0)
66
$ dune build --root no-name-lib-syntax-1-0
77
File "dune", line 1, characters 0-27:
8-
Error: name field cannot be omitted before version 1.1
8+
Error: name field cannot be omitted before version 1.1 of the dune language
99
[1]
1010

1111
executable(s) stanza works the same way

0 commit comments

Comments
 (0)