Cherry pick commit 14857 from 4.02.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15065 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Alain Frisch 2014-08-07 09:40:07 +00:00
parent 2c4b259f60
commit fc7d8cfecc
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ let apply ~source ~target mapper =
in
if magic <> Config.ast_impl_magic_number
&& magic <> Config.ast_intf_magic_number then
failwith "Ast_mapper: unknown magic number";
failwith "Ast_mapper: OCaml version mismatch or malformed input";
Location.input_name := input_value ic;
let ast = input_value ic in
close_in ic;