Skip to content

Commit

Permalink
Merge pull request #20503 from nextcloud/fix/noid/dav-catch-throwable
Browse files Browse the repository at this point in the history
DAV's exception logger should deal with any Throwable
  • Loading branch information
blizzz committed Apr 15, 2020
2 parents 0571fd3 + 73271aa commit 48a8f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function initialize(\Sabre\DAV\Server $server) {
* Log exception
*
*/
public function logException(\Exception $ex) {
public function logException(\Throwable $ex) {
$exceptionClass = get_class($ex);
$level = ILogger::FATAL;
if (isset($this->nonFatalExceptions[$exceptionClass]) ||
Expand Down

0 comments on commit 48a8f0a

Please sign in to comment.