fix(files): allow any throwable in logException

If a TypeError is passed here, it in turn causes a TypeError which
kills the rendering of the error page.

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/41985/head
Varun Patil 2 years ago committed by Arthur Schiwon
parent 1066f7e6e2
commit a20556193c
  1. 4
      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);

Loading…
Cancel
Save