Adding iodine and tests for for list buckets errors

This commit is contained in:
Frederick F. Kautz IV
2015-04-03 18:29:27 -07:00
parent 37c601c21c
commit ebf1e784b3
2 changed files with 22 additions and 19 deletions

View File

@@ -105,14 +105,9 @@ func (server *minioAPI) listBucketsHandler(w http.ResponseWriter, req *http.Requ
encodedResponse := encodeResponse(response, acceptsContentType)
w.Write(encodedResponse)
}
case drivers.BackendCorrupted:
{
log.Error.Println(err)
writeErrorResponse(w, req, InternalError, acceptsContentType, req.URL.Path)
}
default:
{
log.Error.Println(err)
log.Error.Println(iodine.New(err, nil))
writeErrorResponse(w, req, InternalError, acceptsContentType, req.URL.Path)
}
}