diff --git a/typo3/sysext/install/Classes/Updates/SysRefindexHashUpdater.php b/typo3/sysext/install/Classes/Updates/SysRefindexHashUpdater.php
index a1930e397a839b28b83e9b63aa8eb3bb828a5813..0e70b9d76290953dea06fcb760d2212a04a666e1 100644
--- a/typo3/sysext/install/Classes/Updates/SysRefindexHashUpdater.php
+++ b/typo3/sysext/install/Classes/Updates/SysRefindexHashUpdater.php
@@ -136,8 +136,9 @@ class SysRefindexHashUpdater extends AbstractUpdate
             $connection->commit();
             $this->markWizardAsDone();
         } catch (DBALException $e) {
+            $customMessage = 'SQL-ERROR: ' . htmlspecialchars($e->getPrevious()->getMessage());
             $connection->rollBack();
-            throw $e;
+            return false;
         }
 
         return true;