Branch: Tag:

2012-06-21

2012-06-21 18:15:40 by Martin Stjernholm <mast@lysator.liu.se>

Cleaned up error reporting in the image caches.

Draw callbacks now throw rxml errors, and they get reported in a decent way
in the image cache filesystem as well. This should finally avoid noisy pike
backtraces for invalid cimg images etc.

Rev: server/base_server/roxen.pike:1.1118
Rev: server/etc/modules/LazyImage.pmod/module.pmod:1.27
Rev: server/modules/graphics/cimg.pike:1.92
Rev: server/modules/graphics/gbutton.pike:1.127
Rev: server/modules/graphics/graphic_text.pike:1.316

27:   // must also be aligned left or right.       - constant cvs_version = "$Id: gbutton.pike,v 1.126 2012/02/14 15:02:21 anders Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.127 2012/06/21 18:15:40 mast Exp $";   constant thread_safe = 1;      #include <module.h>
357:       if (mappingp(tmp)) {    if (tmp->error != 401) -  report_debug("GButton: Failed to load frame image: %O (error: %O)\n", +  RXML.parse_error("Failed to load frame image: %O (error: %O)\n",    args->border_image, tmp->error);    return tmp;    }