diff options
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r-- | apps/pdfclean.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c index 7a8cc0fc..58fc9b68 100644 --- a/apps/pdfclean.c +++ b/apps/pdfclean.c @@ -26,10 +26,7 @@ int doexpand = 0; void die(fz_error *eo) { - fflush(stdout); - fz_printerror(eo); - fz_droperror(eo); - fflush(stderr); + fz_catch(eo, "aborting"); exit(1); } @@ -45,9 +42,7 @@ void openxref(char *filename, char *password) error = pdf_loadxref(xref, filename); if (error) { - fz_printerror(error); - fz_droperror(error); - fz_warn("trying to repair"); + fz_catch(error, "trying to repair"); error = pdf_repairxref(xref, filename); if (error) die(error); |