Merge pull request #1532 from RichardScothern/azure-error-types

Update missing blob error checking with latest Azure API
This commit is contained in:
Richard Scothern 2016-03-15 10:08:36 -07:00
commit e7ad3ced86

View file

@ -382,8 +382,8 @@ func (d *driver) listBlobs(container, virtPath string) ([]string, error) {
}
func is404(err error) bool {
statusCodeErr, ok := err.(azure.UnexpectedStatusCodeError)
return ok && statusCodeErr.Got() == http.StatusNotFound
statusCodeErr, ok := err.(azure.AzureStorageServiceError)
return ok && statusCodeErr.StatusCode == http.StatusNotFound
}
type writer struct {