aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/SanitizeFilenames.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Command/SanitizeFilenames.php')
-rw-r--r--apps/files/lib/Command/SanitizeFilenames.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/lib/Command/SanitizeFilenames.php b/apps/files/lib/Command/SanitizeFilenames.php
index a404f0b3fd9..88d41d1cb5e 100644
--- a/apps/files/lib/Command/SanitizeFilenames.php
+++ b/apps/files/lib/Command/SanitizeFilenames.php
@@ -62,7 +62,7 @@ class SanitizeFilenames extends Base {
mode: InputOption::VALUE_REQUIRED,
description: 'Replacement for invalid character (by default space, underscore or dash is used)',
);
-
+
}
protected function execute(InputInterface $input, OutputInterface $output): int {
@@ -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) {