mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
add stringer for ErrorCodes (#11933)
This commit is contained in:
@@ -66,6 +66,8 @@ type APIErrorResponse struct {
|
||||
// APIErrorCode type of error status.
|
||||
type APIErrorCode int
|
||||
|
||||
//go:generate stringer -type=APIErrorCode -trimprefix=Err $GOFILE
|
||||
|
||||
// Error codes, non exhaustive list - http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
|
||||
const (
|
||||
ErrNone APIErrorCode = iota
|
||||
|
||||
Reference in New Issue
Block a user