cloud/storage/dropbox: return errors.NotExist when block is not found
By introducing a custom DropboxAPIError type for handling API specific
errors in case of a 409 status code. The implementation is very basic
and looks for a "not_found" string inside the error message.
The reason is that the structure of the error JSON is dependent on the
API endpoints and the Upspin storage backends only return a 'errors.NotExist',
in case a block is not found, otherwise always with a 'errors.IO'.
Reviewed-by: Andrew Gerrand <email@example.com>
1 file changed