]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/number_notation.ml
fix
[helm.git] / helm / ocaml / cic_disambiguation / number_notation.ml
index 7ce0ec0a0face58e43e0a041b4733612cb1267bf..05800ffac70257cda61bf61225fae7fb677254f1 100644 (file)
@@ -24,9 +24,6 @@
  *)
 
 let _ =
-  let const s = Cic.Const (s, []) in
-  let mutind s = Cic.MutInd (s, 0, []) in
-
   DisambiguateChoices.add_num_choice
     ("natural number",
       (fun _ num _ -> HelmLibraryObjects.build_nat (int_of_string num)));
@@ -38,7 +35,7 @@ let _ =
       (fun _ num _ ->
         let num = int_of_string num in
         if num = 0 then
-          raise DisambiguateTypes.Invalid_choice
+          raise (DisambiguateTypes.Invalid_choice (lazy "0 is not a valid positive number"))
         else
           HelmLibraryObjects.build_bin_pos num));
   DisambiguateChoices.add_num_choice