open MatitaTypes
exception Drop;;
+exception UnableToInclude of string;;
let debug = false ;;
let debug_print = if debug then prerr_endline else ignore ;;
with Sys_error _ as exc ->
MatitaLog.error ("Unable to read " ^ path);
MatitaLog.error ("opts.include_paths was " ^ String.concat ":" paths);
+ MatitaLog.error ("current working directory is " ^ Unix.getcwd ());
raise exc
;;
(TacticAstPp.pp_command cmd ^ "\n") :: status.moo_content_rev}
| TacticAst.Include (loc, path) ->
let path = MatitaMisc.obj_file_of_script path in
- let stream = Stream.of_channel (try_open_in opts.include_paths path) in
+ let stream =
+ try
+ Stream.of_channel (try_open_in opts.include_paths path)
+ with Sys_error _ -> raise (UnableToInclude path)
+ in
let status = ref status in
!eval_from_stream_ref status stream (fun _ _ -> ());
!status