Branch: Tag:

2001-09-28

2001-09-28 01:54:49 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix #1 for automap: better error messags

Rev: src/builtin.cmod:1.68

1:   /* -*- c -*- -  * $Id: builtin.cmod,v 1.67 2001/09/28 00:01:43 hubbe Exp $ +  * $Id: builtin.cmod,v 1.68 2001/09/28 01:54:49 hubbe Exp $    */      #include "global.h"
1982:    real_args[e].u.object->prog == automap_marker_program &&    OBJ2_AUTOMAP_MARKER(real_args[e].u.object)->depth >= d)    { - #ifdef PIKE_DEBUG +     if(tmpargs[e].type != T_ARRAY) -  fatal("Arg in automap is not array!\n"); - #endif +  index_error("__automap__", +  Pike_sp-args, +  args, +  tmpargs, +  NULL, +  "Automap on non-array.\n");    tmp=tmpargs[e].u.array->size;    if(tmp < size)    size=tmp;