From 5a8278d9e6c8007bb0d2004ac1a72153d6a5edf7 Mon Sep 17 00:00:00 2001 From: Juan Pablo Villafáñez Date: Wed, 8 Jun 2016 18:45:09 +0200 Subject: Handle storage not available to show an error message --- apps/files/ajax/delete.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') 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) { -- cgit v1.2.3