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

1:   // This is a roxen module. Copyright © 1996 - 2009, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.315 2012/05/09 13:52:12 jenny Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.316 2012/06/21 18:15:40 mast Exp $";      #include <module.h>   inherit "module";
750:    }       if (!font) -  error("gtext: No font (tried "+ +  RXML.parse_error("gtext: No font (tried "+    (args->afont||args->font||args->nfont)+ ")!\n");       // Fonts and such are now initialized.