Made dictionary failure a critical runtime error.
authorStephan Bosch <stephan@rename-it.nl>
Sun Sep 05 21:41:30 2010 +0200 (2010-09-05)
changeset 30942eca9e7497
parent 29 fa9355a369ff
child 31 fc47fc0b0890
Made dictionary failure a critical runtime error.
src/ext-extdata-common.c
     1.1 --- a/src/ext-extdata-common.c	Sat Sep 04 14:56:46 2010 +0200
     1.2 +++ b/src/ext-extdata-common.c	Sun Sep 05 21:41:30 2010 +0200
     1.3 @@ -109,8 +109,9 @@
     1.4  		(ext_data->dict_uri, DICT_DATA_TYPE_STRING, senv->username, PKG_RUNDIR);
     1.5  
     1.6  	if ( dict == NULL ) {
     1.7 -		sieve_sys_error(renv->svinst, "sieve extdata: failed to initialize dict %s",
     1.8 -			ext_data->dict_uri);
     1.9 +		sieve_runtime_critical(renv, NULL,
    1.10 +			"failed to retrieve external data item",
    1.11 +			"sieve extdata: failed to initialize dict %s", ext_data->dict_uri);
    1.12  	}
    1.13  
    1.14  	/* Create interpreter context */
    1.15 @@ -145,12 +146,8 @@
    1.16  		return NULL;
    1.17  	}
    1.18  
    1.19 -	if ( ictx->dict == NULL ) {
    1.20 -		sieve_runtime_error(renv, NULL,
    1.21 -			"failed to retrieve external data item %s due to internal error "
    1.22 -			"(refer to server log for more information).", identifier);
    1.23 +	if ( ictx->dict == NULL )
    1.24  		return NULL;
    1.25 -	}
    1.26  
    1.27  	key = t_strconcat("priv/", identifier, NULL);
    1.28