diff options
author | Alain Frisch <alain@frisch.fr> | 2013-09-12 14:34:13 +0000 |
---|---|---|
committer | Alain Frisch <alain@frisch.fr> | 2013-09-12 14:34:13 +0000 |
commit | 8660e346df9c4b9bb5db38d5c91689f8a6ad906c (patch) | |
tree | 6d829ecb9eba696a42d81dd44bd97117cba2bdd9 /bytecomp/symtable.ml | |
parent | bc9e5b0a5103724e6610a56898dd1b81528bec70 (diff) |
Continue.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/exception_registration@14119 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'bytecomp/symtable.ml')
-rw-r--r-- | bytecomp/symtable.ml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bytecomp/symtable.ml b/bytecomp/symtable.ml index 412c1ab09..9c94c9046 100644 --- a/bytecomp/symtable.ml +++ b/bytecomp/symtable.ml @@ -372,3 +372,10 @@ let report_error ppf = function fprintf ppf "Cannot find or execute the runtime system %s" s | Uninitialized_global s -> fprintf ppf "The value of the global `%s' is not yet computed" s + +let () = + Location.register_error_of_exn + (function + | Error err -> Some (Location.error_of_printer_file report_error err) + | _ -> None + ) |