Use correct syntax for error

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-07-08 16:20:12 +07:00
parent 647f68dfe9
commit 813b8d9dbc
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ module Map = struct
Some v
else
Syntax.Error.since (String_with_vars.Var.loc var)
Stanza.syntax syntax_version
Stanza.syntax min_version
~what:(what var)
| Renamed_in (in_version, new_name) -> begin
if syntax_version >= in_version then

View File

@ -53,5 +53,5 @@ This form does not exist, but displays an hint:
$ dune build --root jbuild-invalid @test-dep
Entering directory 'jbuild-invalid'
File "jbuild", line 5, characters 16-37:
Error: Variable ${dep:generated-file} is only available since version 0.0 of the dune language
Error: Variable ${dep:generated-file} is only available since version 1.0 of the dune language
[1]