diff options
| author | Pierre-Marie Pédrot | 2020-01-29 15:48:23 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-01-29 15:48:23 +0100 |
| commit | c8aac351b7e0e9c98238eecbe2d8cf3c6f917373 (patch) | |
| tree | 18179de5a6068525a755bb3eb6bb105d923e1f97 /topbin | |
| parent | d135b30704dff9ce1dce700f49a41e4089153d8f (diff) | |
| parent | cd7052d68fb1bd56c4c1182a47b180b992abd5e0 (diff) | |
Merge PR #11408: [mltop] Remove error handling hacks in favor of default methods.
Reviewed-by: ppedrot
Diffstat (limited to 'topbin')
| -rw-r--r-- | topbin/coqtop_byte_bin.ml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/topbin/coqtop_byte_bin.ml b/topbin/coqtop_byte_bin.ml index aaabd90370..85d8a48eda 100644 --- a/topbin/coqtop_byte_bin.ml +++ b/topbin/coqtop_byte_bin.ml @@ -8,6 +8,14 @@ (* * (see LICENSE file for the text of the license) *) (************************************************************************) +(* We register this handler for lower-level toplevel loading code *) +let _ = CErrors.register_handler (function + | Symtable.Error e -> + Pp.str (Format.asprintf "%a" Symtable.report_error e) + | _ -> + raise CErrors.Unhandled + ) + let drop_setup () = begin try (* Enable rectypes in the toplevel if it has the directive #rectypes *) |
