Skip to content

Commit 6f3f1c2

Browse files
MAGETWO-61778: Implement config:set command
1 parent c1c4c3a commit 6f3f1c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Config/Console/Command/ConfigSetCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Magento\Framework\App\Scope\ValidatorInterface;
1212
use Magento\Framework\Config\ScopeInterface;
1313
use Magento\Framework\Console\Cli;
14-
use Magento\Framework\Exception\LocalizedException;
1514
use Symfony\Component\Console\Command\Command;
1615
use Symfony\Component\Console\Input\InputArgument;
1716
use Symfony\Component\Console\Input\InputInterface;
@@ -137,7 +136,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
137136
$output->writeln('<info>' . $message . '</info>');
138137

139138
return Cli::RETURN_SUCCESS;
140-
} catch (LocalizedException $exception) {
139+
} catch (\Exception $exception) {
141140
$output->writeln('<error>' . $exception->getMessage() . '</error>');
142141

143142
return Cli::RETURN_FAILURE;

0 commit comments

Comments
 (0)