nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c14c34c
)
model: exit(1) on get_primitive_class
author
Jean Privat
<jean@pryen.org>
Mon, 22 Oct 2012 20:12:14 +0000
(16:12 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
b07d997
..
13b0f5c
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-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