Cherry pick commit 14857 from 4.02.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15065 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
2c4b259f60
commit
fc7d8cfecc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue