ref: 77623041d887d596d2728d89677903f843c8c170
parent: f3850f5fb0b3e63b3971b33e7a0b94ffb346c563
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Wed Oct 12 02:38:11 EDT 2011
page: print readimage error string
--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -772,7 +772,8 @@
if(p->open && p->image == nil){ if((fd = openpage(p)) >= 0){pagegen++;
- p->image = readimage(display, fd, 1);
+ if((p->image = readimage(display, fd, 1)) == nil)
+ fprint(2, "readimage: %r\n");
close(fd);
}
if(p->image == nil)
--
⑨