ref: 0109ea828fbb4dc485dfda84566b49090899dd13
parent: 419ee230af7d3560e84e559dd70ae14652e7e53f
author: Yaroslav Kolomiiets <yarikos@gmail.com>
date: Tue May 31 11:59:14 EDT 2016
elaborate diagnostics
--- a/egdi.c
+++ b/egdi.c
@@ -385,7 +385,7 @@
freeimage(img);
img = allocimage(display, r, chan, 0, DNofill);
if(img == nil)
- sysfatal("%r");
+ return nil;
imgcache[cid][coff] = img;
}
return img;
@@ -425,7 +425,7 @@
if(p+size > ep)
sysfatal("cacheimage: size: %s", Eshort);
if((img = pickimage(cid, coff, r, chan)) == nil)
- sysfatal("pickimage: %r");
+ sysfatal("cacheimage: pickimage: %r");
err = (zip? loadrle : loadbmp)(img, r, p, size, c->cmap);
if(err < 0)
sysfatal("%r");
@@ -496,7 +496,7 @@
if(p+size > ep)
sysfatal("cacheimage2: size: %s", Eshort);
if((img = pickimage(cid, coff, r, chan)) == nil)
- sysfatal("pickimage: %r");
+ sysfatal("cacheimage2: pickimage: %r");
err = (zip? loadrle : loadbmp)(img, r, p, size, c->cmap);
if(err < 0)
sysfatal("%r");
--- a/rd.c
+++ b/rd.c
@@ -320,7 +320,7 @@
freeimage(img);
img = allocimage(display, rs, c->chan, 0, DNofill);
if(img == nil)
- sysfatal("%r");
+ sysfatal("scanimgupdate: %r");
}
while(p<ep && nr>0){