Skip to content

Commit 14b5274

Browse files
authored
Revert "return of errors"
1 parent 1fd2418 commit 14b5274

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/PHPJasper.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ public function process(string $input, string $output, array $options = [])
142142
if ($options['resources']) {
143143
$this->command .= " -r {$options['resources']}";
144144
}
145-
146-
$this->command = $this->command . ' 2>&1';
147145
}
148146

149147
return $this;
@@ -218,7 +216,7 @@ public function execute($user = false)
218216
chdir($this->pathExecutable);
219217
exec($this->command, $output, $returnVar);
220218
if ($returnVar !== 0) {
221-
throw new \Exception("{$output[0]}", 1);
219+
throw new \PHPJasper\Exception\ErrorCommandExecutable();
222220
}
223221

224222
return $output;

0 commit comments

Comments
 (0)