summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>2016-06-08 18:45:09 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-10 14:42:59 +0200
commit5a8278d9e6c8007bb0d2004ac1a72153d6a5edf7 (patch)
treeea7ce7accefa4691aff2ea582537daeeee62a01e
parent12098383cce8f6b541e2536fe8e1b446b50fde4c (diff)
downloadnextcloud-server-5a8278d9e6c8007bb0d2004ac1a72153d6a5edf7.tar.gz
nextcloud-server-5a8278d9e6c8007bb0d2004ac1a72153d6a5edf7.zip
Handle storage not available to show an error message
-rw-r--r--apps/files/ajax/delete.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php
index 2d02869df14..dbaaddd1070 100644
--- a/apps/files/ajax/delete.php
+++ b/apps/files/ajax/delete.php
@@ -72,6 +72,9 @@ try {
} catch(\OCP\Files\NotFoundException $e) {
OCP\JSON::error(['data' => ['message' => 'File not found']]);
return;
+} catch(\OCP\Files\StorageNotAvailableException $e) {$
+ OCP\JSON::error(['data' => ['message' => 'Storage not available']]);
+ return;
}
if ($success) {