ref: 745debcdfb49837a82d112c2623b7a763fdf2cd0
parent: 1e0a35297dac2f17ea7fb0a59c7051276435b6f4
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Aug 29 19:21:16 EDT 2020
main: print filename on error
--- a/main.c
+++ b/main.c
@@ -46,7 +46,7 @@
if((fd = open(argv[0], OREAD)) < 0)
sysfatal("%r");
if((pdf = pdfopen(fd)) == nil)
- sysfatal("%r");
+ sysfatal("%s: %r", argv[0]);
if((v = dictget(pdf->info, "Creator")) != nil)
fprint(2, "creator: %s\n", v->str);
if((v = dictget(pdf->info, "Producer")) != nil)