diff options
author | Robin Appelman <robin@icewind.nl> | 2021-06-17 13:53:11 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-04-05 13:21:30 +0200 |
commit | 54f61352f074f9c4698eb2b94e019ab101518b4c (patch) | |
tree | 83b1d7f18dbcdf4d74630fd484fb86360d5bb751 /apps/files/lib | |
parent | a1b7f132c8a495fbf8fcce4612a9cd6b86d511d4 (diff) | |
download | nextcloud-server-54f61352f074f9c4698eb2b94e019ab101518b4c.tar.gz nextcloud-server-54f61352f074f9c4698eb2b94e019ab101518b4c.zip |
better error messages if the users home is not writable during scanning
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Command/Scan.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php index 710c76de493..a59665c56e9 100644 --- a/apps/files/lib/Command/Scan.php +++ b/apps/files/lib/Command/Scan.php @@ -162,6 +162,7 @@ class Scan extends Base { } } catch (ForbiddenException $e) { $output->writeln("<error>Home storage for user $user not writable or 'files' subdirectory missing</error>"); + $output->writeln(' ' . $e->getMessage()); $output->writeln('Make sure you\'re running the scan command only as the user the web server runs as'); } catch (InterruptedException $e) { # exit the function if ctrl-c has been pressed |