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.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.ml')
| -rw-r--r-- | proofs/proof.ml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/proofs/proof.ml b/proofs/proof.ml index 5ab4409f8b..e2ee5426b5 100644 --- a/proofs/proof.ml +++ b/proofs/proof.ml @@ -69,18 +69,15 @@ exception FullyUnfocused let _ = CErrors.register_handler begin function | CannotUnfocusThisWay -> - CErrors.user_err Pp.(str "This proof is focused, but cannot be unfocused this way") + Pp.str "This proof is focused, but cannot be unfocused this way" | NoSuchGoals (i,j) when Int.equal i j -> - CErrors.user_err ~hdr:"Focus" Pp.(str"No such goal (" ++ int i ++ str").") + Pp.(str "[Focus] No such goal (" ++ int i ++ str").") | NoSuchGoals (i,j) -> - CErrors.user_err ~hdr:"Focus" Pp.( - str"Not every goal in range ["++ int i ++ str","++int j++str"] exist." - ) + Pp.(str "[Focus] Not every goal in range ["++ int i ++ str","++int j++str"] exist.") | NoSuchGoal id -> - CErrors.user_err - ~hdr:"Focus" - Pp.(str "No such goal: " ++ str (Names.Id.to_string id) ++ str ".") - | FullyUnfocused -> CErrors.user_err Pp.(str "The proof is not focused") + Pp.(str "[Focus] No such goal: " ++ str (Names.Id.to_string id) ++ str ".") + | FullyUnfocused -> + Pp.str "The proof is not focused" | _ -> raise CErrors.Unhandled end |
