diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-09-30 12:30:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 12:30:50 +0200 |
commit | 05cfbf472cb658838ca32c4d08474ae5ba3174bf (patch) | |
tree | 59ba1ee9d99608a864000cf8b93247fab84febd7 | |
parent | 3c614aa242e3c356c569888a3fdde7f513b872b2 (diff) | |
parent | e1c4b648d116befc202d1b8059ffc806e494248d (diff) | |
download | nextcloud-server-05cfbf472cb658838ca32c4d08474ae5ba3174bf.tar.gz nextcloud-server-05cfbf472cb658838ca32c4d08474ae5ba3174bf.zip |
Merge pull request #28915 from nextcloud/fix/improve-bug-reporting
Improve syntax error reporting
-rw-r--r-- | lib/private/AppFramework/Http/Dispatcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php index 6ef7bba4fd6..6bbab42cb79 100644 --- a/lib/private/AppFramework/Http/Dispatcher.php +++ b/lib/private/AppFramework/Http/Dispatcher.php @@ -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); } |