aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-09-30 12:30:50 +0200
committerGitHub <noreply@github.com>2021-09-30 12:30:50 +0200
commit05cfbf472cb658838ca32c4d08474ae5ba3174bf (patch)
tree59ba1ee9d99608a864000cf8b93247fab84febd7
parent3c614aa242e3c356c569888a3fdde7f513b872b2 (diff)
parente1c4b648d116befc202d1b8059ffc806e494248d (diff)
downloadnextcloud-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.php2
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);
}