Skip to content

Commit b254d64

Browse files
authored
Don't trash the exception stack trace (#2714)
Throw the original exception instead of wrapping it in a new exception
1 parent f4eebc1 commit b254d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataTableAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ protected function errorResponse(\Exception $exception)
876876
$debug = $this->config->get('app.debug');
877877

878878
if ($error === 'throw' || (! $error && ! $debug)) {
879-
throw new Exception($exception->getMessage(), $code = 0, $exception);
879+
throw $exception;
880880
}
881881

882882
$this->getLogger()->error($exception);

0 commit comments

Comments
 (0)