diff options
author | Pierre Weis <Pierre.Weis@inria.fr> | 1999-11-12 16:28:39 +0000 |
---|---|---|
committer | Pierre Weis <Pierre.Weis@inria.fr> | 1999-11-12 16:28:39 +0000 |
commit | 8fdbd93857154e32cd9f016b43fbca49044109d4 (patch) | |
tree | 11b14c0158a25109a15360fd5758e37aa06e4f68 | |
parent | 30b727ecb1915743a2fb0bb24a62506d0ee0f34c (diff) |
Réécriture des messages d'erreur en printf.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2519 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | typing/env.ml | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/typing/env.ml b/typing/env.ml index cd4b193ff..783c07c39 100644 --- a/typing/env.ml +++ b/typing/env.ml @@ -5,7 +5,7 @@ (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *) (* *) (* Copyright 1996 Institut National de Recherche en Informatique et *) -(* Automatique. Distributed only by permission. *) +(* en Automatique. Distributed only by permission. *) (* *) (***********************************************************************) @@ -776,21 +776,14 @@ let summary env = env.summary (* Error report *) let report_error = function - Not_an_interface filename -> - print_string filename; print_space(); - print_string "is not a compiled interface." + | Not_an_interface filename -> + printf "%s@ is not a compiled interface" filename | Corrupted_interface filename -> - print_string "Corrupted compiled interface"; print_space(); - print_string filename + printf "Corrupted compiled interface@ %s" filename | Illegal_renaming(modname, filename) -> - print_string "Wrong file naming:"; print_space(); - print_string filename; print_space(); - print_string "contains the compiled interface for"; print_space(); - print_string modname + printf "Wrong file naming: %s@ contains the compiled interface for@ %s" + filename modname | Inconsistent_import(name, source1, source2) -> - open_hvbox 0; - print_string "The compiled interfaces for "; print_string source1; - print_string " and "; print_string source2; print_space(); - print_string "make inconsistent assumptions over interface "; - print_string name; - close_box() + printf "@[<hv>The compiled interfaces for %s@ and %s@ " source1 source2; + printf "make inconsistent assumptions over interface %s@]" name +;; |