summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-24 16:42:53 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-24 16:42:53 +0200
commitfe575feca85ee6e6bb7b8b423a60d377bd364193 (patch)
treeb2a93228e59c6c9eac12e9bc2857c1ad5cc43d05 /apps/files/js/files.js
parenta67a2272e77485391695af84644e7a9074e50af8 (diff)
downloadnextcloud-server-fe575feca85ee6e6bb7b8b423a60d377bd364193.tar.gz
nextcloud-server-fe575feca85ee6e6bb7b8b423a60d377bd364193.zip
Prevent scanner going crazy with unavailable storages
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 245648a79e2..4fdc9eb2110 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -333,6 +333,9 @@ function scanFiles(force, dir, users) {
scannerEventSource.listen('folder',function(path) {
console.log('now scanning ' + path);
});
+ scannerEventSource.listen('error',function(message) {
+ console.error('Scanner error: ', message);
+ });
scannerEventSource.listen('done',function(count) {
scanFiles.scanning=false;
console.log('done after ' + count + ' files');