diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php
index ff96fbf2dabf4..70b8729861201 100644
--- a/apps/files/lib/Command/Scan.php
+++ b/apps/files/lib/Command/Scan.php
@@ -143,7 +143,7 @@ protected function scanFiles($user, $path, OutputInterface $output, $backgroundS
$scanner->scan($path, $recursive, $homeOnly ? [$this, 'filterHomeMount'] : null);
}
} catch (ForbiddenException $e) {
- $output->writeln("Home storage for user $user not writable");
+ $output->writeln("Home storage for user $user not writable or 'files' subdirectory missing");
$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