Branch: Tag:

2000-10-18

2000-10-18 01:50:38 by Martin Stjernholm <mast@lysator.liu.se>

More complete error messages for run time errors in the pike code.

Rev: server/modules/scripting/piketag.pike:2.28

7:   // return "Hello world!\n";   // </pike>    - constant cvs_version = "$Id: piketag.pike,v 2.27 2000/09/25 08:02:51 per Exp $"; + constant cvs_version = "$Id: piketag.pike,v 2.28 2000/10/18 01:50:38 mast Exp $";   constant thread_safe=1;      inherit "module";
239:       if(err = catch{    (o=p())->parse(id); -  }) -  RXML.run_error ("Error in Pike code: %s\n", describe_error (err)); +  }) { +  catch { +  err = ({err[0], err[1][sizeof (backtrace())..]}); +  err[1][0] = ({"top level", err[1][0][1]}); +  }; +  RXML.run_error ("Error in Pike code: %s", describe_backtrace (err)); +  }       res = (o && o->flush() || "");