summaryrefslogtreecommitdiff
path: root/base/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'base/error.c')
-rw-r--r--base/error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/error.c b/base/error.c
index 33954e07..b00157e3 100644
--- a/base/error.c
+++ b/base/error.c
@@ -50,6 +50,9 @@ fz_throw0(const char *func, const char *file, int line, char *fmt, ...)
eo->msg[sizeof(eo->msg) - 1] = '\0';
va_end(ap);
+ if (getenv("BOMB"))
+ fz_abort(eo);
+
return eo;
}