Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:3907:    id->client ), frommapp);       id->cache_status["icachedraw"] = 1;       mapping meta;    string data;    array guides;   #ifdef ARG_CACHE_DEBUG    werror("draw args: %O\n", args );   #endif -  mixed reply; -  if (mixed err = catch { -  reply = draw_function( @copy_value(args), id ); -  }) { -  master()->handle_error(err); -  return; -  } +  mixed reply = draw_function( @copy_value(args), id );       if( !reply ) {   #ifdef ARG_CACHE_DEBUG    werror("%O(%{%O, %}%O) ==> 0\n",    draw_function, args, id);   #endif    return;    }       if( arrayp( args ) )
Roxen.git/server/base_server/roxen.pike:4741: Inside #if defined(ARG_CACHE_DEBUG)
  #ifdef ARG_CACHE_DEBUG    werror("data: %O id: %O\n", na, id );   #endif    if(! (res=restore( na,id )) )    {    mixed err;    if (nodraw || (err = catch {    if (mapping res = draw( na, id ))    return res;    })) { + #ifdef ARG_CACHE_DEBUG +  werror("draw() failed with error: %s\n", +  describe_backtrace(err)); + #endif    if (objectp (err) && err->is_RXML_Backtrace && !RXML_CONTEXT) {    // If we get an rxml error and there's no rxml context then    // we're called from a direct request to the image cache.    // The error ought to have been reported in the page that    // generated the link to the image cache, but since it's too    // late for that now, we just log it as a (brief) server    // error with the referring page.    string errmsg = "Error in " + name + " image generation: " +    err->msg;    if (sizeof (id->referer))
Roxen.git/server/base_server/roxen.pike:4766:    string message) == 1)    {    // File not found.    report_debug("Requesting unknown key %s %O from %O\n",    message,    id->not_query,    (sizeof(id->referer)?id->referer[0]:"unknown page"));    return 0;    }    } + #ifdef ARG_CACHE_DEBUG +  werror("Rethrowing error...\n"); + #endif    throw (err);    }    if( !(res = restore( na,id )) ) {    report_error("Draw callback %O did not generate any data.\n"    "na: %O\n"    "id: %O\n",    draw_function, na, id);    return 0;    }    }