Skip to content
Snippets Groups Projects
Commit 3d6be69f authored by Vincent Petry's avatar Vincent Petry
Browse files

Throw storage not available on guzzle error

If the remote server is in maintenance mode, we must throw storage not
available exception instead of not found which might auto-remove the
share.
parent e18d0e26
No related branches found
No related tags found
No related merge requests found
...@@ -253,7 +253,7 @@ class Storage extends DAV implements ISharedStorage { ...@@ -253,7 +253,7 @@ class Storage extends DAV implements ISharedStorage {
// throw this to be on the safe side: the share will still be visible // 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 // 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 // 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); return json_decode($response->getBody(), true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment