summaryrefslogtreecommitdiff
path: root/sys/src/cmd/page.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-10-12 06:38:11 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-10-12 06:38:11 +0200
commit681363caaed5c6ce0c118d9c1dad11d4bee64efe (patch)
tree21c2164095b719a375aee189a85b1b89ffac5137 /sys/src/cmd/page.c
parent2423c5a940488257a2a0f776bd50cd1f6b052c1e (diff)
page: print readimage error string
Diffstat (limited to 'sys/src/cmd/page.c')
-rw-r--r--sys/src/cmd/page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/page.c b/sys/src/cmd/page.c
index 223c40473..532e5d616 100644
--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -772,7 +772,8 @@ loadpage(Page *p)
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)