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

fix(files): add more debug output to the filename sanitizing command
pull/53499/head
Ferdinand Thiessen 4 months ago committed by GitHub
commit bed94cc31e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      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) {

Loading…
Cancel
Save