use err more

This commit is contained in:
dzaima 2021-08-21 00:14:26 +03:00
parent a1870123cd
commit b38db2dda0
2 changed files with 2 additions and 5 deletions

View File

@ -281,7 +281,7 @@ void load_init() { // very last init function
#else
B r = rtComplete[i]? inc(fruntime[i]) : rtObjGet(rtObjRaw, i);
#endif
if (q_N(r)) { printf("· in runtime!\n"); exit(1); }
if (q_N(r)) err("· in runtime!\n");
if (isVal(r)) v(r)->flags|= i+1;
#ifdef RT_WRAP
r = rtWrap_wrap(r);

View File

@ -49,10 +49,7 @@ int main(int argc, char* argv[]) {
bqn_exit(0);
#endif
bqn_setComp(bqn_exec(srcB, bi_N, bi_N));
} else {
printf("couldn't read c.bqn\n");
exit(1);
}
} else err("couldn't read c.bqn\n");
#endif
bool startREPL = argc==1;
bool silentREPL = false;