commit - ea6ac09d253bcf098c41163d460bbff0d9b17de6
commit + 5772a2bc0cde0d65bafcc61ae81f5d156fb8e217
blob - 0ca0fffc4a8c6e26b04f6196b65b35d3f0c1e12c
blob + b461f20777868ac50849218b64b8aeabeb02e9e0
--- pdf.c
+++ pdf.c
/* find the requested object */
if (onum != -1) {
obj = findobj(res->ast, onum, ogen);
- if (obj == NULL)
- errx(2, "%s: requested object not found", infile);
+ if (obj == NULL) {
+ if (ogen == -1) {
+ errx(2, "%s: object %d not found", infile,
+ onum);
+ } else {
+ errx(2, "%s: object %d.%d not found", infile,
+ onum, ogen);
+ }
+ }
}
/* print desired output */