Skip to content

Commit

Permalink
Merge pull request #41985 from nextcloud/pulsejet/fix-log-exception
Browse files Browse the repository at this point in the history
fix(dav): allow any throwable in logException
  • Loading branch information
pulsejet authored Dec 4, 2023
2 parents 3bff235 + a205561 commit 1fd6273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/Files/BrowserErrorPagePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public static function isBrowserRequest(IRequest $request) {
}

/**
* @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);
Expand Down

0 comments on commit 1fd6273

Please sign in to comment.