aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarun Patil <varunpatil@ucla.edu>2023-12-04 07:34:51 -0800
committerGitHub <noreply@github.com>2023-12-04 07:34:51 -0800
commit1fd6273e11f3e27dd74d3763f332ad1a38100128 (patch)
tree83a9d9525caa2f6a9355c058a5806b410b3dd081
parent3bff23512658a7448c74cd6c39e720ba6463e768 (diff)
parenta20556193ca9cad8ea2817f0e5f1c1b15df02011 (diff)
downloadnextcloud-server-1fd6273e11f3e27dd74d3763f332ad1a38100128.tar.gz
nextcloud-server-1fd6273e11f3e27dd74d3763f332ad1a38100128.zip
Merge pull request #41985 from nextcloud/pulsejet/fix-log-exception
fix(dav): allow any throwable in logException
-rw-r--r--apps/dav/lib/Files/BrowserErrorPagePlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Files/BrowserErrorPagePlugin.php b/apps/dav/lib/Files/BrowserErrorPagePlugin.php
index b3ce591bd4a..eccae8afdd5 100644
--- a/apps/dav/lib/Files/BrowserErrorPagePlugin.php
+++ b/apps/dav/lib/Files/BrowserErrorPagePlugin.php
@@ -70,9 +70,9 @@ class BrowserErrorPagePlugin extends ServerPlugin {
}
/**
- * @param \Exception $ex
+ * @param \Throwable $ex
*/
- public function logException(\Exception $ex) {
+ public function logException(\Throwable $ex): void {
if ($ex instanceof Exception) {
$httpCode = $ex->getHTTPCode();
$headers = $ex->getHTTPHeaders($this->server);