mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
gefs: don't abort when the fs breaks
it's useful to debug when something goes wrong
This commit is contained in:
parent
66d2e1ac59
commit
c709e09178
1 changed files with 1 additions and 3 deletions
|
@ -89,10 +89,8 @@ errorv(char *fmt, va_list ap, int broke)
|
||||||
|
|
||||||
c = *errctx;
|
c = *errctx;
|
||||||
vsnprint(c->err, sizeof(c->err), fmt, ap);
|
vsnprint(c->err, sizeof(c->err), fmt, ap);
|
||||||
if(broke){
|
if(broke)
|
||||||
fprint(2, "%s\n", c->err);
|
fprint(2, "%s\n", c->err);
|
||||||
abort();
|
|
||||||
}
|
|
||||||
assert(c->nerrlab > 0 && c->nerrlab < Estacksz);
|
assert(c->nerrlab > 0 && c->nerrlab < Estacksz);
|
||||||
longjmp(c->errlab[--c->nerrlab], -1);
|
longjmp(c->errlab[--c->nerrlab], -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue