diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-24 16:42:53 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-24 16:42:53 +0200 |
commit | fe575feca85ee6e6bb7b8b423a60d377bd364193 (patch) | |
tree | b2a93228e59c6c9eac12e9bc2857c1ad5cc43d05 /apps/files/js/files.js | |
parent | a67a2272e77485391695af84644e7a9074e50af8 (diff) | |
download | nextcloud-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.js | 3 |
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'); |