Skip to content

Commit bed94cc

Browse files
authored
Merge pull request #53657 from nextcloud/chore/debug-output
fix(files): add more debug output to the filename sanitizing command
2 parents 4ab573f + dffc741 commit bed94cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files/lib/Command/SanitizeFilenames.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ private function sanitizeFiles(Folder $folder): void {
137137
$this->output->writeln('<comment>skipping: ' . $node->getPath() . ' (file is locked)</>');
138138
} catch (NotPermittedException) {
139139
$this->output->writeln('<comment>skipping: ' . $node->getPath() . ' (no permissions)</>');
140-
} catch (Exception) {
140+
} catch (Exception $error) {
141141
$this->output->writeln('<error>failed: ' . $node->getPath() . '</>');
142+
$this->output->writeln('<error>' . $error->getMessage() . '</>', OutputInterface::OUTPUT_NORMAL | OutputInterface::VERBOSITY_VERBOSE);
142143
}
143144

144145
if ($node instanceof Folder) {

0 commit comments

Comments
 (0)