Browse Source

Cover ALL the exits.

pull/896/head
Adam Vessey 3 years ago
parent
commit
a5148f5d18
No known key found for this signature in database
GPG Key ID: 89B39535BF6D0D39
  1. 9
      islandora.install

9
islandora.install

@ -201,6 +201,13 @@ function islandora_update_8007() {
} }
} }
catch (ExtensionNameLengthException | MissingDependencyException $e) { catch (ExtensionNameLengthException | MissingDependencyException $e) {
throw new UpdateException('Failed; ensure that the ctools module is available in the Drupal installation.'); throw new UpdateException('Failed; ensure that the ctools module is available in the Drupal installation.', 0, $e);
} }
catch (\Exception $e) {
throw new UpdateException('Failed; encountered an exception while trying to enable ctools.', 0, $e);
}
// Theoretically impossible to hit, as ModuleInstaller::install() only returns TRUE (or throws/propagates an exception), but...
// probably a good idea to have the here, just in case?
throw new UpdateException('Failed; hit the end of the update hook implementation, which is not expected.');
} }

Loading…
Cancel
Save