Use correct version for error message

Error.deleted_in would use the current version rather than the deleted version
for the error message

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-07-20 13:33:27 +02:00
parent 5683909fc3
commit 2b72c80fbc
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ module Map = struct
Some v
else
Syntax.Error.deleted_in (String_with_vars.Var.loc pform)
Stanza.syntax syntax_version ~what:(describe pform) ?repl
Stanza.syntax in_version ~what:(describe pform) ?repl
let expand t pform syntax_version =
match String_with_vars.Var.payload pform with