aboutsummaryrefslogtreecommitdiff
path: root/engine/logic_monad.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-01-30 23:00:40 +0100
committerEmilio Jesus Gallego Arias2020-02-24 12:41:28 -0500
commit5f5b8a1fdfc71ae93f75d5bfa2d6bb2920a2f4d1 (patch)
treec2236854ca6d3de29cbe5e6d42e11766c4115ddb /engine/logic_monad.ml
parent46fe9b26ad55a266b71bbd428ee406b03a9db030 (diff)
[exn] remove `raise` taking optional exception information argument
This was redundant with `iraise`; exceptions in the logic monad now are forced to attach `info` to `Proofview.NonLogical.raise`
Diffstat (limited to 'engine/logic_monad.ml')
-rw-r--r--engine/logic_monad.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/logic_monad.ml b/engine/logic_monad.ml
index 3c383b2e00..6df3378524 100644
--- a/engine/logic_monad.ml
+++ b/engine/logic_monad.ml
@@ -83,7 +83,7 @@ struct
(** [Pervasives.raise]. Except that exceptions are wrapped with
{!Exception}. *)
- let raise ?info = fun e -> (); fun () -> Exninfo.raise ?info (Exception e)
+ let raise (e, info) () = Exninfo.iraise (Exception e, info)
(** [try ... with ...] but restricted to {!Exception}. *)
let catch = fun s h -> ();
@@ -93,7 +93,8 @@ struct
h (e, info) ()
let read_line = fun () -> try read_line () with e ->
- let (e, info) = CErrors.push e in raise ~info e ()
+ let (e, info) = CErrors.push e in
+ raise (e, info) ()
let print_char = fun c -> (); fun () -> print_char c