From 15e7b3aa1a3e8be652dcd02b49a1905a08014020 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 30 Sep 2013 14:32:26 +0200 Subject: [PATCH] Bower installer simplification --- lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php b/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php index aa9c430608..643974f999 100644 --- a/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php +++ b/lib/Alchemy/Phrasea/Command/Developer/BowerInstall.php @@ -62,21 +62,14 @@ class BowerInstall extends Command $output->writeln("OK"); } - $success = false; - try { $output->write("Installing assets..."); $grunt->command('install-assets'); $output->write(" OK"); $output->writeln(""); $this->container['console']->get('assets:compile-less')->execute($input, $output); - $success = true; } catch (ExecutionFailureException $e) { - - } - - if (!$success) { - throw new RuntimeException('Unable to install bower dependencies'); + throw new RuntimeException('Unable to install bower dependencies', $e->getCode(), $e); } return 0;