diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-06-24 11:07:45 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-06-24 11:07:45 +0200 |
commit | dffc7412010d4c50e68e1587c9a3371136a4dcd7 (patch) | |
tree | 5aaad1f73df0a116a56880c16cb15a926930ec48 | |
parent | 8ee06edffc8469c3de6597b4e8d379657c533264 (diff) | |
download | nextcloud-server-chore/debug-output.tar.gz nextcloud-server-chore/debug-output.zip |
fix(files): add more debug output to the filename sanitizing commandchore/debug-output
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | apps/files/lib/Command/SanitizeFilenames.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/lib/Command/SanitizeFilenames.php b/apps/files/lib/Command/SanitizeFilenames.php index a404f0b3fd9..a06b820ee6c 100644 --- a/apps/files/lib/Command/SanitizeFilenames.php +++ b/apps/files/lib/Command/SanitizeFilenames.php @@ -137,8 +137,9 @@ class SanitizeFilenames extends Base { $this->output->writeln('<comment>skipping: ' . $node->getPath() . ' (file is locked)</>'); } catch (NotPermittedException) { $this->output->writeln('<comment>skipping: ' . $node->getPath() . ' (no permissions)</>'); - } catch (Exception) { + } catch (Exception $error) { $this->output->writeln('<error>failed: ' . $node->getPath() . '</>'); + $this->output->writeln('<error>' . $error->getMessage() . '</>', OutputInterface::OUTPUT_NORMAL | OutputInterface::VERBOSITY_VERBOSE); } if ($node instanceof Folder) { |