Skip to content

Commit 1fd6273

Browse files
authored
Merge pull request #41985 from nextcloud/pulsejet/fix-log-exception
fix(dav): allow any throwable in logException
2 parents 3bff235 + a205561 commit 1fd6273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dav/lib/Files/BrowserErrorPagePlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public static function isBrowserRequest(IRequest $request) {
7070
}
7171

7272
/**
73-
* @param \Exception $ex
73+
* @param \Throwable $ex
7474
*/
75-
public function logException(\Exception $ex) {
75+
public function logException(\Throwable $ex): void {
7676
if ($ex instanceof Exception) {
7777
$httpCode = $ex->getHTTPCode();
7878
$headers = $ex->getHTTPHeaders($this->server);

0 commit comments

Comments
 (0)