Commit 9b45f864 authored by Marco Villegas's avatar Marco Villegas
Browse files

Issue #1796144 follow-up: Catch unknown exceptions on event processor plugin execution.

parent 736023da
Loading
Loading
Loading
Loading
+3 −0
Changes for includes/worker.inc: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -141,5 +141,8 @@ function _versioncontrol_repository_event_processor_run_worker($data) {
    catch (VersioncontrolSynchronizationEventProcessorException $exception) {
      watchdog('versioncontrol', 'Event processor using class "%class" aborted execution with message "%message".', array('%class' => get_class($event_processor), '%message' => $exception->getMessage()), WATCHDOG_WARNING);
    }
    catch (Exception $exception) {
      watchdog('versioncontrol', 'Event processor using class "%class" failed with message "%message".', array('%class' => get_class($event_processor), '%message' => $exception->getMessage()), WATCHDOG_WARNING);
    }
  }
}