Conditions | 4 |
Paths | 7 |
Total Lines | 31 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | protected function execute(InputInterface $input, OutputInterface $output) |
||
26 | { |
||
27 | parent::execute($input, $output); |
||
28 | |||
29 | try |
||
30 | { |
||
31 | $this->configureBuild($input); |
||
32 | |||
33 | $output->writeln('<fg=black;bg=yellow>Heads up! You are using an experimental feature.</>'); |
||
34 | |||
35 | $this->website->watch(); |
||
36 | } |
||
37 | catch (FileAwareException $e) |
||
38 | { |
||
39 | $output->writeln(StrUtils::interpolate( |
||
40 | "Your website failed to build with the following error in file '{file}'{line}: {message}", array( |
||
41 | 'file' => $e->getPath(), |
||
42 | 'line' => (($l = $e->getLineNumber()) >= 0) ? ' on line ' . $l : '', |
||
43 | 'message' => $e->getMessage() |
||
44 | ) |
||
45 | )); |
||
46 | } |
||
47 | catch (\Exception $e) |
||
48 | { |
||
49 | $output->writeln(sprintf('Your website failed to build with the following error: %s', |
||
50 | $e->getMessage() |
||
51 | )); |
||
52 | } |
||
53 | |||
54 | return 1; |
||
55 | } |
||
56 | } |
||
57 |