View Issue Details

IDProjectCategoryView StatusLast Update
0004960mantisbtcustomizationpublic2005-04-18 10:43
Reportergtomlin Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.0.0a1 
Summary0004960: Show parameter name in gpc_api.php error messages
Description

Debugging customizations is harder than it needs to be because messages from gpc_api.php do not identify the parameter causing the failure. This can be fixed by:

a) changing the relevant error strings in strings_xxx.txt to accept a parameter, e.g.,
change:
$MANTIS_ERROR[ERROR_GPC_VAR_NOT_FOUND] = 'A required parameter to this page was not found.';
to:
$MANTIS_ERROR[ERROR_GPC_VAR_NOT_FOUND] = 'A required parameter to this page was not found: %s.';

b) changing the functions in gpc_api.php to use error_parameters before trigger_error to add the parameter name, e.g.,
error_parameters( $p_var_name );
trigger_error( ERROR_GPC_VAR_NOT_FOUND, ERROR );

TagsNo tags attached.

Relationships

child of 0004937 closedvboctor Mantis 1.0.0a1 Release 

Activities

thraxisp

thraxisp

2004-12-17 19:58

reporter   ~0008716

fixed in CVS.