Skip to content

Commit

Permalink
Merge pull request #17623 from owncloud/fed-throwcorrectexception
Browse files Browse the repository at this point in the history
Throw storage not available on guzzle error
  • Loading branch information
MorrisJobke committed Jul 14, 2015
2 parents eab1116 + 3d6be69 commit 5cd7f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/external/storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function getShareInfo() {
// throw this to be on the safe side: the share will still be visible
// in the UI in case the failure is intermittent, and the user will
// be able to decide whether to remove it if it's really gone
throw new NotFoundException();
throw new StorageNotAvailableException();
}

return json_decode($response->getBody(), true);
Expand Down

0 comments on commit 5cd7f7e

Please sign in to comment.