summaryrefslogtreecommitdiffstats
path: root/driver/errors.ml
diff options
context:
space:
mode:
Diffstat (limited to 'driver/errors.ml')
-rw-r--r--driver/errors.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/errors.ml b/driver/errors.ml
index 3256a7099..a6d970802 100644
--- a/driver/errors.ml
+++ b/driver/errors.ml
@@ -55,6 +55,8 @@ let report_error ppf exn =
Location.print ppf loc; Typeclass.report_error ppf err
| Translclass.Error(loc, err) ->
Location.print ppf loc; Translclass.report_error ppf err
+ | Warnings.Errors (n) ->
+ fprintf ppf "@.Error: %d error-enabled warnings occurred." n
| x -> fprintf ppf "@]"; raise x in
fprintf ppf "@[%a@]@." report exn