]> matita.cs.unibo.it Git - helm.git/commitdiff
decent error on interpretation declaration
authorEnrico Tassi <enrico.tassi@inria.fr>
Wed, 2 Sep 2009 08:56:04 +0000 (08:56 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Wed, 2 Sep 2009 08:56:04 +0000 (08:56 +0000)
helm/software/components/lexicon/lexiconEngine.ml

index 12200193e034c4d9af35a84b5df2edbb6b51c1bb..54c5985f3cda38c02fca901ea5b41909840fdcfc 100644 (file)
@@ -142,7 +142,9 @@ let rec eval_command ?(mode=L.WithPreferences) sstatus cmd =
               prerr_endline ("LexiconEngine.eval_command: domain item not found: " ^ 
                (DisambiguateTypes.string_of_domain_item item));
              dump_aliases prerr_endline "" sstatus;
-              assert false
+              raise (Failure (
+                      (DisambiguateTypes.string_of_domain_item item) ^ 
+                      " not found"));
            end
        | p -> p
      in