protected function JanrainCaptureApi::reportError in Janrain Registration 6
Same name and namespace in other branches
- 7.4 includes/janrain_capture.api.inc \JanrainCaptureApi::reportError()
- 7 janrain_capture.api.inc \JanrainCaptureApi::reportError()
- 7.2 includes/janrain_capture.api.inc \JanrainCaptureApi::reportError()
- 7.3 includes/janrain_capture.api.inc \JanrainCaptureApi::reportError()
Helper function for the Engage web API wrappers.
Parameters
stdClass $result: Result containing error code and message
1 call to JanrainCaptureApi::reportError()
- JanrainCaptureApi::call in ./
janrain_capture.api.inc - Performs the HTTP request.
File
- ./
janrain_capture.api.inc, line 159 - API Client for making calls to the Janrain Capture web service
Class
- JanrainCaptureApi
- @file API Client for making calls to the Janrain Capture web service
Code
protected function reportError($result) {
watchdog('janrain_capture', 'Capture web API seems to be inaccessible due to "%error".', array(
'%error' => $result->code . ' ' . $result->error,
), WATCHDOG_WARNING);
drupal_set_message(t('Capture web API seems to be inaccessible because of error "%error".', array(
'%error' => $result->code . ' ' . $result->error,
)), 'error');
}