diff options
-rw-r--r-- | apps/files/ajax/delete.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php index 2d02869df14..07bd01cd250 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) { |