Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // 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.946 2006/11/14 15:11:06 anders Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.947 2006/11/14 15:18:50 anders Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:3540:    werror("data %O\n", na );   #endif    if(! (res=restore( na,id )) )    {    mixed err;    if (nodraw || (err = catch {    if (mapping res = draw( na, id ))    return res;    })) {    // File not found. -  if(arrayp(err) && sizeof(err) && stringp(err[0]) && -  sscanf(err[0], "Requesting unknown key %s\n", string message) == 1) +  +  if(arrayp(err) && sizeof(err) && stringp(err[0]))    { -  +  if (sscanf(err[0], "Requesting unknown key %s\n", +  string message) == 1) +  {    report_debug("Requesting unknown key %s %O from %O\n",    message,    id->not_query,    (sizeof(id->referer)?id->referer[0]:"unknown page")); -  +  return 0;    } -  else +  if (sscanf(err[0], "Failed to load specified image [\"%s\"]\n", +  string message) == 1) +  { +  report_debug("Failed to load specified image %O from %O - referrer %O\n", +  message, +  id->not_query, +  (sizeof(id->referer)?id->referer[0]:"unknown page")); +  return 0; +  } +  }    report_debug("Error in draw: %s\n", describe_backtrace(err));    return 0;    }    if( !(res = restore( na,id )) ) {    error("Draw callback %O did not generate any data.\n"    "na: %O\n"    "id: %O\n",    draw_function, na, id);    }    }