Branch: Tag:

2001-12-19

2001-12-19 15:18:51 by Marcus Wellhardh <wellhard@roxen.com>

Ported from 2.2:
Improved errormessage for "Requesting unknown key" in ImageCache.

Rev: server/base_server/roxen.pike:1.771

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.770 2001/12/19 14:40:56 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.771 2001/12/19 15:18:51 wellhard Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
2939:    draw( na, id );    })) {    // File not found. -  werror("Error in draw: %s\n", describe_backtrace(err)); +  if(arrayp(err) && sizeof(err) && stringp(err[0]) && +  err[0][0..21] == "Requesting unknown key") +  report_debug("Requesting unknown key %O from %O\n", +  id->not_query, +  (sizeof(id->referer)?id->referer[0]:"unknown page")); +  else +  report_debug("Error in draw: %s\n", describe_backtrace(err));    return 0;    }    if( !(res = restore( na,id )) )