diff options
| author | Pierre-Marie Pédrot | 2020-02-03 09:18:41 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-02-03 09:18:41 +0100 |
| commit | 0ffd145a082f69aeb3980717f501d5c1c503a996 (patch) | |
| tree | 6e5cad60e5d7fa31b03d975f59367411bfd254b9 /proofs/proof_bullet.ml | |
| parent | e5da14f87fea2e99b5e4e70dc6340f40daaef41f (diff) | |
| parent | 173a2d8b0fba1a85b618654151af04b5decf9bac (diff) | |
Merge PR #11490: [exn] Don't reraise in exception printers
Ack-by: aspiwack
Reviewed-by: ppedrot
Diffstat (limited to 'proofs/proof_bullet.ml')
| -rw-r--r-- | proofs/proof_bullet.ml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/proofs/proof_bullet.ml b/proofs/proof_bullet.ml index 66e2ae5c29..61e8741973 100644 --- a/proofs/proof_bullet.ml +++ b/proofs/proof_bullet.ml @@ -79,7 +79,7 @@ module Strict = struct (function | FailedBullet (b,sugg) -> let prefix = Pp.(str"Wrong bullet " ++ pr_bullet b ++ str": ") in - CErrors.user_err ~hdr:"Focus" Pp.(prefix ++ suggest_on_error sugg) + Pp.(str "[Focus]" ++ spc () ++ prefix ++ suggest_on_error sugg) | _ -> raise CErrors.Unhandled) @@ -204,8 +204,7 @@ exception SuggestNoSuchGoals of int * Proof.t let _ = CErrors.register_handler begin function | SuggestNoSuchGoals(n,proof) -> let suffix = suggest proof in - CErrors.user_err - Pp.(str "No such " ++ str (CString.plural n "goal") ++ str "." ++ - pr_non_empty_arg (fun x -> x) suffix) + Pp.(str "No such " ++ str (CString.plural n "goal") ++ str "." ++ + pr_non_empty_arg (fun x -> x) suffix) | _ -> raise CErrors.Unhandled end |
