diff options
Diffstat (limited to 'checker')
| -rw-r--r-- | checker/checker.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checker/checker.ml b/checker/checker.ml index 1b7af51783..b3c8b0e8c9 100644 --- a/checker/checker.ml +++ b/checker/checker.ml @@ -238,8 +238,6 @@ let rec explain_exn = function hov 0 (str "Out of memory") | Stack_overflow -> hov 0 (str "Stack overflow") - | Anomaly (s,pps) -> - hov 1 (anomaly_string () ++ where s ++ pps ++ report ()) | Match_failure(filename,pos1,pos2) -> hov 1 (anomaly_string () ++ str "Match failure in file " ++ str (guill filename) ++ str " at line " ++ int pos1 ++ @@ -283,6 +281,8 @@ let rec explain_exn = function str ", characters " ++ int e ++ str "-" ++ int (e+6) ++ str ")")) ++ report ()) + | e when is_anomaly e -> + print_anomaly e | reraise -> hov 0 (anomaly_string () ++ str "Uncaught exception " ++ str (Printexc.to_string reraise)++report()) |
