From ca1da0acb7f02bab9385fa3cbe3fe4453a13de82 Mon Sep 17 00:00:00 2001 From: Clark Tomlinson Date: Fri, 26 Jun 2015 11:19:59 -0400 Subject: add check if server returns a 500 and display error resolves https://github.com/owncloud/core/issues/17170 --- apps/files/js/filelist.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 5fc444e6121..417c4b9fe99 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1131,6 +1131,14 @@ return false; } + // Did share service die or something else fail? + if (result.status === 500) { + // Go home + this.changeDirectory('/'); + OC.Notification.show(t('files', 'This directory is unavailable, please check the logs or contact the administrator')); + return false; + } + if (result.status === 404) { // go back home this.changeDirectory('/'); -- cgit v1.2.3