Branch: Tag:

1999-04-22

1999-04-22 05:38:27 by David Hedbor <david@hedbor.org>

Fixed reporting of errors in the provider functions. Now you get a
correct backtrace.

Rev: server/base_server/configuration.pike:1.182

1: - string cvs_version = "$Id: configuration.pike,v 1.181 1999/04/14 17:10:04 grubba Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.182 1999/04/22 05:38:27 neotron Exp $";   #include <module.h>   #include <roxen.h>   
437:    continue;    if(functionp(mod[fun]))    error = catch(m=mod[fun](@args)); -  if(arrayp(error)) -  roxen_perror(describe_backtrace(error+({ "Error in map_providers:"}))); +  if(arrayp(error)) { +  error[0] = "Error in map_providers(): "+error[0]; +  roxen_perror(describe_backtrace(error)); +  }    else    a += ({ m });    error = 0;
460:    return(ret);    }    })) { -  throw(error + ({ "Error in call_provider:"})); +  error[0] = "Error in call_provider(): "+error[0]; +  throw(error);    }    }    }