mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
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>
This commit is contained in:
parent
9ab8020035
commit
a7586ccf47
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue