Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function __construct(string $command, string $output, int $returnCode) |
||
28 | { |
||
29 | if ($returnCode == 127) { |
||
30 | $message = 'Command not found: "'.$command.'"'; |
||
31 | } else { |
||
32 | $message = 'Command "'.$command.'" exited with code '.$returnCode.': '.$output; |
||
33 | } |
||
34 | |||
35 | parent::__construct($message); |
||
36 | } |
||
38 |