diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index fdfa44c143f..aff2d2194aa 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -429,9 +429,12 @@ class Installer {
if ($softErrors) {
try {
Installer::installShippedApp($filename);
- } catch (\Doctrine\DBAL\Exception\TableExistsException $e) {
- $errors[$filename] = $e;
- continue;
+ } catch (HintException $e) {
+ if ($e->getPrevious() instanceof TableExistsException) {
+ $errors[$filename] = $e;
+ continue;
+ }
+ throw $e;
}
} else {
Installer::installShippedApp($filename);
@@ -463,7 +466,8 @@ class Installer {
} catch (TableExistsException $e) {
throw new HintException(
'Failed to enable app ' . $app,
- 'Please ask for help via one of our support channels.'
+ 'Please ask for help via one of our support channels.',
+ 0, $e
);
}
}