diff options
| author | Emilio Jesus Gallego Arias | 2020-03-01 02:49:04 -0500 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-03-08 00:44:58 -0500 |
| commit | 4ba8fabb14256cdc65e8440362d6697d9e97b7f4 (patch) | |
| tree | 6dc6168679e8b48127decd32823afa39ac77355c /lib | |
| parent | dbd3a4c4213b3d56908a8387de93e27aaec501a4 (diff) | |
[exn] [nit] Remove not very useful re-raises.
Cleanup: IMHO most of the re-raises here are not worth it.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/control.ml | 2 | ||||
| -rw-r--r-- | lib/pp.ml | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/control.ml b/lib/control.ml index e67e88ee95..1898eab89e 100644 --- a/lib/control.ml +++ b/lib/control.ml @@ -75,8 +75,8 @@ let windows_timeout n f x e = if not !exited then begin killed := true; raise Sys.Break end else raise e | e -> - let () = killed := true in let e = Exninfo.capture e in + let () = killed := true in Exninfo.iraise e type timeout = { timeout : 'a 'b. int -> ('a -> 'b) -> 'a -> exn -> 'b } @@ -201,11 +201,7 @@ let pp_with ft pp = pp_cmd s; pp_close_tag ft () [@warning "-3"] in - try pp_cmd pp - with reraise -> - let reraise = Exninfo.capture reraise in - let () = Format.pp_print_flush ft () in - Exninfo.iraise reraise + pp_cmd pp (* If mixing some output and a goal display, please use msg_warning, so that interfaces (proofgeneral for example) can easily dispatch |
