Skip to content

Commit

Permalink
Catch GenericFileException in Generate
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Mündler <[email protected]>
  • Loading branch information
nielstron authored Jun 29, 2024
1 parent fc79f66 commit 57fef03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Command/Generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\GenericFileException;
use OCP\Files\StorageInvalidException;
use OCP\Files\StorageNotAvailableException;
use OCP\IConfig;
Expand Down Expand Up @@ -234,6 +235,8 @@ private function parseFile(File $file): void {
} catch (\InvalidArgumentException $e) {
$error = $e->getMessage();
$this->output->writeln("<error>{$error}</error>");
} catch (GenericFileException $e) {
$this->output->writeln("<error>GenericFileException</error>");
}
}
}
Expand Down

0 comments on commit 57fef03

Please sign in to comment.