]> matita.cs.unibo.it Git - helm.git/commitdiff
error message was printed on stdout
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 24 Mar 2006 17:52:05 +0000 (17:52 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 24 Mar 2006 17:52:05 +0000 (17:52 +0000)
components/cic_proof_checking/cicEnvironment.ml

index 1f6789e76895156311b0cc7470f89fb1b8fb7813..8965b656a4682edb2531b8aed422252b696786bd 100644 (file)
                  CicEnvironment SETTINGS (trust and clean_tmp)
  * ************************************************************************** *)
 
+let debug = false;;
 let cleanup_tmp = true;;
 let trust = ref  (fun _ -> true);;
 let set_trust f = trust := f
 let trust_obj uri = !trust uri
-let debug_print = fun x -> prerr_endline (Lazy.force x)
+let debug_print = if debug then fun x -> prerr_endline (Lazy.force x) else ignore
 
 (* ************************************************************************** *
                                    TYPES 
@@ -216,7 +217,7 @@ module Cache :
            if List.mem_assq uri !frozen_list then
              (* CIRCULAR DEPENDENCY DETECTED, print the error and raise *)
              begin
-               print_endline "\nCircularDependency!\nfrozen list: \n";
+               prerr_endline "\nCircularDependency!\nfrozen list: \n";
                List.iter (
                  fun (u,(_,o)) ->
                    let su = UriManager.string_of_uri u in