page: print readimage error string

front
cinap_lenrek 2011-10-12 06:38:11 +02:00
parent 2423c5a940
commit 681363caae
1 changed files with 2 additions and 1 deletions

View File

@ -772,7 +772,8 @@ loadpage(Page *p)
if(p->open && p->image == nil){ if(p->open && p->image == nil){
if((fd = openpage(p)) >= 0){ if((fd = openpage(p)) >= 0){
pagegen++; pagegen++;
p->image = readimage(display, fd, 1); if((p->image = readimage(display, fd, 1)) == nil)
fprint(2, "readimage: %r\n");
close(fd); close(fd);
} }
if(p->image == nil) if(p->image == nil)