diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-09-19 12:17:06 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-24 15:43:15 +0200 |
commit | 44cf67accdc294f46bf82b3f8661f353dc5e22f0 (patch) | |
tree | 4e0211076e1a7d9ee06e6f89429509114832be05 /apps/files/ajax | |
parent | 729c06548fbfe035c14dae68c4b09494b292d217 (diff) | |
download | nextcloud-server-44cf67accdc294f46bf82b3f8661f353dc5e22f0.tar.gz nextcloud-server-44cf67accdc294f46bf82b3f8661f353dc5e22f0.zip |
Storage 503 message improvements
"Storage not available" is now "Storage temporarily not available".
Exceptions are now logged in DEBUG level, not FATAL.
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/list.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php index bb95f124dab..2cd09765435 100644 --- a/apps/files/ajax/list.php +++ b/apps/files/ajax/list.php @@ -79,12 +79,12 @@ try { OCP\JSON::success(array('data' => $data)); } catch (\OCP\Files\StorageNotAvailableException $e) { \OCP\Util::logException('files', $e); - OCP\JSON::error(array( - 'data' => array( + OCP\JSON::error([ + 'data' => [ 'exception' => '\OCP\Files\StorageNotAvailableException', - 'message' => $l->t('Storage not available') - ) - )); + 'message' => $l->t('Storage is temporarily not available') + ] + ]); } catch (\OCP\Files\StorageInvalidException $e) { \OCP\Util::logException('files', $e); OCP\JSON::error(array( |