Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9993

Make CRM_Core_Error::fatal throw an exception when called from the API

    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

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: