fix(files): add more debug output to the filename sanitizing command

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-06-24 11:07:45 +02:00
parent 8ee06edffc
commit dffc741201
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

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