Add missing words to syntax error message
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
8b5e1a9a13
commit
8e09749f12
|
@ -124,7 +124,7 @@ let renamed_in t ver ~to_ =
|
||||||
else begin
|
else begin
|
||||||
desc () >>= fun (loc, what) ->
|
desc () >>= fun (loc, what) ->
|
||||||
Loc.fail loc
|
Loc.fail loc
|
||||||
"%s was renamed to '%s' in %s of %s" what to_
|
"%s was renamed to '%s' in the %s version of %s" what to_
|
||||||
(Version.to_string ver) t.desc
|
(Version.to_string ver) t.desc
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ fallback isn't allowed in dune
|
||||||
$ dune build --root dune1
|
$ dune build --root dune1
|
||||||
Info: creating file dune-project with this contents: (lang dune 1.0)
|
Info: creating file dune-project with this contents: (lang dune 1.0)
|
||||||
File "dune", line 2, characters 1-11:
|
File "dune", line 2, characters 1-11:
|
||||||
Error: 'fallback' was renamed to '(mode fallback)' in 1.0 of the dune language
|
Error: 'fallback' was renamed to '(mode fallback)' in the 1.0 version of the dune language
|
||||||
[1]
|
[1]
|
||||||
|
|
||||||
2nd fallback form isn't allowed either
|
2nd fallback form isn't allowed either
|
||||||
|
@ -11,7 +11,7 @@ fallback isn't allowed in dune
|
||||||
$ dune build --root dune2
|
$ dune build --root dune2
|
||||||
Info: creating file dune-project with this contents: (lang dune 1.0)
|
Info: creating file dune-project with this contents: (lang dune 1.0)
|
||||||
File "dune", line 2, characters 1-17:
|
File "dune", line 2, characters 1-17:
|
||||||
Error: 'fallback' was renamed to '(mode fallback)' in 1.0 of the dune language
|
Error: 'fallback' was renamed to '(mode fallback)' in the 1.0 version of the dune language
|
||||||
[1]
|
[1]
|
||||||
|
|
||||||
But it is allowed in jbuilder
|
But it is allowed in jbuilder
|
||||||
|
|
Loading…
Reference in New Issue