diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-10-01 17:54:27 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2021-10-01 17:54:27 +0200 |
commit | 365f5e425fc1c1c877d2b75164d16b292abd1b20 (patch) | |
tree | 2f7d10b13aad18a3213a565c0c1b7ff46ad00b33 /apps/files_external/lib/Lib/Storage | |
parent | b8641965b7eb7321f6346fea140a011c2f40054b (diff) | |
download | nextcloud-server-365f5e425fc1c1c877d2b75164d16b292abd1b20.tar.gz nextcloud-server-365f5e425fc1c1c877d2b75164d16b292abd1b20.zip |
Add additional logging on SMB failure to read folder content
Currently we discard the error comming from the SMB library and create a
new exception for nextcloud. This patch makes sure that the
access/permission exception from the SMB library are logged correctly.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_external/lib/Lib/Storage')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index c9d078631b8..28a2d6de7cc 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -239,6 +239,7 @@ class SMB extends Common implements INotifyStorage { try { $files = $this->share->dir($path); } catch (ForbiddenException $e) { + $this->logger->critical($e->getMessage(), ['exception' => $e]); throw new NotPermittedException(); } foreach ($files as $file) { |