summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 00cfaf53013..e37eba5dcb3 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1372,7 +1372,7 @@
if (result.data.error === 'authentication_error' ||
result.data.error === 'token_expired' ||
result.data.error === 'application_not_enabled' ||
- result.data.exception === '\\OCP\\Files\\StorageNotAvailableException'
+ (result.data.exception && result.data.exception.indexOf('StorageNotAvailableException') > 0)
) {
OC.redirect(OC.generateUrl('apps/files'));
}