You are here

protected function JanrainCaptureApi::reportError in Janrain Registration 7

Same name and namespace in other branches
  1. 6 janrain_capture.api.inc \JanrainCaptureApi::reportError()
  2. 7.4 includes/janrain_capture.api.inc \JanrainCaptureApi::reportError()
  3. 7.2 includes/janrain_capture.api.inc \JanrainCaptureApi::reportError()
  4. 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 160
An API Client for making calls to the Janrain Capture web service.

Class

JanrainCaptureApi
@file An 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');
}