Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:4249: 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))    errmsg += " Referrer: " + id->referer[0];    report_error (errmsg + "\n");    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;    }    }