gefs: don't abort when the fs breaks

it's useful to debug when something goes wrong
This commit is contained in:
Ori Bernstein 2025-01-05 22:25:35 +00:00
parent 66d2e1ac59
commit c709e09178

View file

@ -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);
} }