File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -483,13 +483,18 @@ let load_file fn state =
483483 (* TODO: stateful computations should take and return the state when possible *)
484484 state
485485 in
486+ let add_bad_file err fn =
487+ if state.State. config.verbose then
488+ Printf. eprintf " %s\n %!" err;
489+ bad_files := fn :: ! bad_files
490+ in
486491 let process_interface fn =
487492 last_loc := Lexing. dummy_pos;
488493 if state.State. config.verbose then
489494 Printf. eprintf " Scanning interface from %s\n %!" fn;
490495 init_and_continue state fn (fun state ->
491496 match state.file_infos.cmi_sign with
492- | None -> bad_files := fn :: ! bad_files
497+ | None -> add_bad_file " Missing cmi_sign " fn
493498 | Some cmi_sign ->
494499 read_interface fn cmi_sign state
495500 )
@@ -500,7 +505,7 @@ let load_file fn state =
500505 Printf. eprintf " Scanning implementation from %s\n %!" fn;
501506 init_and_continue state fn (fun state ->
502507 match state.file_infos.cmt_struct with
503- | None -> bad_files := fn :: ! bad_files
508+ | None -> add_bad_file " Missing cmt_struct " fn
504509 | Some structure ->
505510 regabs state;
506511 let prepare (loc1 , loc2 ) =
You can’t perform that action at this time.
0 commit comments