Skip to content

Commit

Permalink
Merge pull request PHPJasper#95 from PHPJasper/revert-94-master
Browse files Browse the repository at this point in the history
Revert "return of errors"
  • Loading branch information
geekcom authored Mar 5, 2018
2 parents 1fd2418 + 14b5274 commit 674aca0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PHPJasper.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ public function process(string $input, string $output, array $options = [])
if ($options['resources']) {
$this->command .= " -r {$options['resources']}";
}

$this->command = $this->command . ' 2>&1';
}

return $this;
Expand Down Expand Up @@ -218,7 +216,7 @@ public function execute($user = false)
chdir($this->pathExecutable);
exec($this->command, $output, $returnVar);
if ($returnVar !== 0) {
throw new \Exception("{$output[0]}", 1);
throw new \PHPJasper\Exception\ErrorCommandExecutable();
}

return $output;
Expand Down

0 comments on commit 674aca0

Please sign in to comment.