From a5d752138b11efc465d94dadead6852d5e71188e Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 15 May 2011 11:40:02 +0000 Subject: Turning Sys_error into error by default instead of anomaly. After all, they are in general internal Coq error. If a Coq code needs to catch a Sys_error for some purpose, it can still do it. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14122 85f007b7-540e-0410-9357-904b9bb8a0f7 --- toplevel/cerrors.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toplevel/cerrors.ml b/toplevel/cerrors.ml index 831e27bed7..ae09b202d0 100644 --- a/toplevel/cerrors.ml +++ b/toplevel/cerrors.ml @@ -37,7 +37,7 @@ let rec explain_exn_default_aux anomaly_string report_fn = function hov 0 (str "Syntax error: " ++ str txt ++ str ".") | Lexer.Error.E err -> hov 0 (str (Lexer.Error.to_string err)) | Sys_error msg -> - hov 0 (anomaly_string () ++ str "uncaught exception Sys_error " ++ str (guill msg) ++ report_fn ()) + hov 0 (str "System error: " ++ str (guill msg)) | Out_of_memory -> hov 0 (str "Out of memory.") | Stack_overflow -> -- cgit v1.2.3