X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic%2FcicParser.ml;h=241a5c1752caafe0af217271dd654545e31f4136;hb=37f08b2aba9f17d9d609ca0f57d607f437a3d3fc;hp=f0d3e800fe11f84a44944119866c8374c393e142;hpb=a61f397a3ea3acaf95a04a2aafbf1d3f223a2755;p=helm.git diff --git a/helm/ocaml/cic/cicParser.ml b/helm/ocaml/cic/cicParser.ml index f0d3e800f..241a5c175 100644 --- a/helm/ocaml/cic/cicParser.ml +++ b/helm/ocaml/cic/cicParser.ml @@ -46,7 +46,7 @@ class warner = end ;; -exception EmptyUri;; +exception EmptyUri of string;; (* given an uri u it returns the list of tokens of the base uri of u *) (* e.g.: token_of_uri "cic:/a/b/c/d.xml" returns ["a" ; "b" ; "c"] *) @@ -54,7 +54,8 @@ let tokens_of_uri uri = let uri' = UriManager.string_of_uri uri in let rec chop_list = function - [] -> raise EmptyUri + [] -> raise (EmptyUri uri') + | [fn] -> [] | he::[fn] -> [he] | he::tl -> he::(chop_list tl) in