(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* acc | h::stk -> accumulate_qf (h e :: acc) stk e let from_exception e = try Ok (CList.flatten (accumulate_qf [] !handle_stack e)) with exn -> let ei = Exninfo.capture exn in Error ei let print e = let open Pp in match e with | [] -> mt () | qf -> let open Pp in let qf = prlist_with_sep cut pp_wloc qf in v 0 (prlist_with_sep cut (fun x -> x) [str "Quickfix:"; qf])