mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Merge pull request #28915 from nextcloud/fix/improve-bug-reporting
Improve syntax error reporting
This commit is contained in:
commit
05cfbf472c
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ class Dispatcher {
|
|||
$response = $this->middlewareDispatcher->afterException(
|
||||
$controller, $methodName, $exception);
|
||||
} catch (\Throwable $throwable) {
|
||||
$exception = new \Exception($throwable->getMessage(), $throwable->getCode(), $throwable);
|
||||
$exception = new \Exception($throwable->getMessage() . ' in file \'' . $throwable->getFile() . '\' line ' . $throwable->getLine(), $throwable->getCode(), $throwable);
|
||||
$response = $this->middlewareDispatcher->afterException(
|
||||
$controller, $methodName, $exception);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue