shithub: gefs

Download patch

ref: fa22219b828a9b33ee050ac1697aef0764c5b9b3
parent: 3071470d08a2c5b611bcb34f0ee8e3e7647c5254
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 25 16:58:57 EST 2023

main: abort on broke() -- still useful info for now

--- a/main.c
+++ b/main.c
@@ -87,8 +87,10 @@
 
 	c = *errctx;
 	vsnprint(c->err, sizeof(c->err), fmt, ap);
-	if(broke)
+	if(broke){
 		fprint(2, "%s\n", c->err);
+		abort();
+	}
 	assert(c->nerrlab > 0 && c->nerrlab < Estacksz);
 	longjmp(c->errlab[--c->nerrlab], -1);
 }
@@ -100,7 +102,6 @@
 
 	aincl(&fs->rdonly, 1);
 	va_start(ap, fmt);
-//abort();
 	errorv(fmt, ap, 1);
 }