Branch: Tag:

2006-01-25

2006-01-25 09:21:47 by 0

Better error reporting when frame images cannot be loaded and avoid a
backtrace in those situations.

Rev: server/modules/graphics/gbutton.pike:1.115

27:   // must also be aligned left or right.       - constant cvs_version = "$Id: gbutton.pike,v 1.114 2005/12/16 17:50:52 jonasw Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.115 2006/01/25 09:21:47 jonasw Exp $";   constant thread_safe = 1;      #include <module.h>
300:    tmp = roxen.load_layers(args->border_image, id, opts);    }    -  if (mappingp(tmp)) -  if (tmp->error == 401) +  if (mappingp(tmp)) { +  if (tmp->error != 401) +  report_debug("GButton: Failed to load frame image: %O (error: %O)\n", +  args->border_image, tmp->error);    return tmp; -  else -  report_debug("GButton: Failed to load frame image: %O\n", -  args->border_image); +  }    set_image( tmp );    }