Skip to content

Commit

Permalink
discover: Print more information on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
timbertson authored and aantron committed Apr 4, 2017
1 parent c4e1834 commit c2a874d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/util/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,18 @@ let () =
safe_remove (Filename.chop_extension !caml_file ^ ".cmi");
safe_remove (Filename.chop_extension !caml_file ^ ".cmo"));

let exit status =
if status <> 0 then begin
if !debug then printf "
See %s for more details.
" !log_file
else printf "
Run with DEBUG=y for more details.
";
end;
exit status
in

let setup_data = ref [] in

(* Test for pkg-config. *)
Expand Down

0 comments on commit c2a874d

Please sign in to comment.