nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clib: prefix runtime errors with "Runtime error"
[nit.git]
/
clib
/
nit_main.c
diff --git
a/clib/nit_main.c
b/clib/nit_main.c
index
800a76b
..
b972ae6
100644
(file)
--- a/
clib/nit_main.c
+++ b/
clib/nit_main.c
@@
-151,6
+151,7
@@
void nit_exit(int i) {
}
void nit_abort(const char* s, const char* msg, const char* loc, int line) {
+ fprintf(stderr, "Runtime error: ");
fprintf(stderr, s, msg);
fprintf(stderr, " (%s", loc);
if (line != 0) fprintf(stderr, ":%d", line);