Merge pull request #53657 from nextcloud/chore/debug-output

fix(files): add more debug output to the filename sanitizing command
This commit is contained in:
Ferdinand Thiessen 2025-06-25 15:30:52 +02:00 committed by GitHub
commit bed94cc31e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {