Skip to content

Commit 2c04872

Browse files
committed
B2B-1785: Cannot enable remote storage with install command when modules are not enabled
1 parent 0848474 commit 2c04872

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup/src/Magento/Setup/Model/Installer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
use Magento\Framework\Setup\UpgradeSchemaInterface;
4747
use Magento\Framework\Validation\ValidationException;
4848
use Magento\PageCache\Model\Cache\Type as PageCache;
49+
use Magento\RemoteStorage\Driver\DriverException;
4950
use Magento\Setup\Console\Command\InstallCommand;
5051
use Magento\Setup\Controller\ResponseTypeInterface;
5152
use Magento\Setup\Exception;
@@ -395,7 +396,7 @@ public function install($request)
395396
try {
396397
// phpcs:ignore Magento2.Functions.DiscouragedFunction
397398
call_user_func_array([$this, $method], $params);
398-
} catch (\Exception $e) {
399+
} catch (RuntimeException | DriverException $e) {
399400
$this->revertRemoteStorageConfiguration();
400401
throw $e;
401402
}

0 commit comments

Comments
 (0)