Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0
-
Fix Version/s: 4.4.0
-
Component/s: None
-
Labels:None
Description
Error handling should be passed back to the api rather than give an error.
CRM_Core_Error::fatal hits this line
if ( php_sapi_name() == "cli" )
{ print ("Sorry. A non-recoverable error has occurred.\n$message \n$code\n$email\n\n"); debug_print_backtrace(); die ("\n"); }Not sure why you would ever want that but for API handling through api is better