protected function ModifiedFiles::processFailures in Automatic Updates 8
Handle HTTP failures.
Parameters
\GuzzleHttp\Exception\RequestException $exception: The request exception.
File
- src/
Services/ ModifiedFiles.php, line 129  
Class
- ModifiedFiles
 - Modified files service.
 
Namespace
Drupal\automatic_updates\ServicesCode
protected function processFailures(RequestException $exception) {
  // Log all the exceptions, even modules that aren't the main project.
  watchdog_exception('automatic_updates', $exception, NULL, [], RfcLogLevel::INFO);
  // HTTP 404 is expected for modules that aren't the main project. But
  // other error codes should complain loudly.
  if ($exception
    ->getCode() !== 404) {
    throw $exception;
  }
}