Merge pull request #1532 from RichardScothern/azure-error-types
Update missing blob error checking with latest Azure APImaster
						commit
						2c635d1f7e
					
				| 
						 | 
					@ -382,8 +382,8 @@ func (d *driver) listBlobs(container, virtPath string) ([]string, error) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func is404(err error) bool {
 | 
					func is404(err error) bool {
 | 
				
			||||||
	statusCodeErr, ok := err.(azure.UnexpectedStatusCodeError)
 | 
						statusCodeErr, ok := err.(azure.AzureStorageServiceError)
 | 
				
			||||||
	return ok && statusCodeErr.Got() == http.StatusNotFound
 | 
						return ok && statusCodeErr.StatusCode == http.StatusNotFound
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type writer struct {
 | 
					type writer struct {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue