model: exit(1) on get_primitive_class
authorJean Privat <jean@pryen.org>
Mon, 22 Oct 2012 20:12:14 +0000 (16:12 -0400)
committerJean Privat <jean@pryen.org>
Mon, 22 Oct 2012 20:49:41 +0000 (16:49 -0400)
Code must be cleaner to avoid printing error in model.nit

Signed-off-by: Jean Privat <jean@pryen.org>

src/model/model.nit

index b07d997..13b0f5c 100644 (file)
@@ -193,7 +193,7 @@ redef class MModule
                                return c
                        end
                        print("Fatal Error: no primitive class {name}")
-                       abort
+                       exit(1)
                end
                assert cla.length == 1 else print cla.join(", ")
                return cla.first