Branch: Tag:

2000-03-24

2000-03-24 19:15:06 by Martin Stjernholm <mast@lysator.liu.se>

Handle object type backtraces in store_error().

Rev: server/protocols/http.pike:1.224

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.223 2000/03/24 02:08:54 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.224 2000/03/24 19:15:06 mast Exp $";      #define MAGIC_ERROR   
1136:    res += "</ul>\n\n";    }    -  if (sizeof (bt)) { +  if (bt && sizeof (bt)) {    res += "<h3>Pike backtrace</h3>\n<ul>\n";    int q = sizeof (bt);    foreach(reverse (bt), [string file, int line, string func, string descr])
1206:       string cwd = getcwd() + "/";    array bt; -  if (arrayp (err) && sizeof (err) >= 2 && arrayp (err[1])) { +  if (arrayp (err) && sizeof (err) >= 2 && arrayp (err[1]) || +  objectp (err) && err->is_generic_error) {    bt = ({});    foreach (err[1], mixed ent) {    string file, func, descr;