Revert "Exporting WriteErrorResponse"

This reverts commit e05d46a0b5.
This commit is contained in:
Frederick F. Kautz IV
2015-04-26 17:02:49 -07:00
parent c29677b245
commit 202fc26719
4 changed files with 33 additions and 34 deletions

View File

@@ -109,8 +109,7 @@ func generateObjectsListResult(bucket string, objects []drivers.ObjectMetadata,
return data
}
// WriteErrorResponse writes a formatted error to the user
func WriteErrorResponse(w http.ResponseWriter, req *http.Request, errorType int, acceptsContentType contentType, resource string) {
func writeErrorResponse(w http.ResponseWriter, req *http.Request, errorType int, acceptsContentType contentType, resource string) {
error := getErrorCode(errorType)
errorResponse := getErrorResponse(error, resource)
// set headers