ref: ad1850d0f841bbd6245d5c09e3f6b750abf550f8
parent: c962ff8e70b5fb31c6f4ee3886eb20af65e21e18
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Sep 1 17:01:52 EDT 2020
print the error when resolved object is null
--- a/main.c
+++ b/main.c
@@ -53,7 +53,9 @@
v = dictget(v, argv[i]);
}
}
- if(v != nil)
+ if(v == &null)
+ fprint(2, "%r\n");
+ else if(v != nil)
print("%O\n", v);
/*
if((v = dictget(pdf->info, "Creator")) != nil)