From fbedea08076355f9c94b7aa4d14f6157749a4fe7 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 19 Apr 2017 17:04:16 -0500 Subject: Add PHPDoc and handle exception in ScanAppData as well Signed-off-by: Morris Jobke --- apps/files/lib/Command/ScanAppData.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/files/lib/Command') diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php index 365e2e3cb2e..6ad83d9a182 100644 --- a/apps/files/lib/Command/ScanAppData.php +++ b/apps/files/lib/Command/ScanAppData.php @@ -128,6 +128,8 @@ class ScanAppData extends Base { } catch (InterruptedException $e) { # exit the function if ctrl-c has been pressed $output->writeln('Interrupted by user'); + } catch (NotFoundException $e) { + $output->writeln('Path not found: ' . $e->getMessage() . ''); } catch (\Exception $e) { $output->writeln('Exception during scan: ' . $e->getMessage() . ''); $output->writeln('' . $e->getTraceAsString() . ''); -- cgit v1.2.3