mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Matches s3 invalid compression format error for 'mc sql' (#9067)
This commit is contained in:
@@ -71,6 +71,24 @@ func errInvalidCompressionFormat(err error) *s3Error {
|
||||
}
|
||||
}
|
||||
|
||||
func errInvalidBZIP2CompressionFormat(err error) *s3Error {
|
||||
return &s3Error{
|
||||
code: "InvalidCompressionFormat",
|
||||
message: "BZIP2 is not applicable to the queried object. Please correct the request and try again.",
|
||||
statusCode: 400,
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
|
||||
func errInvalidGZIPCompressionFormat(err error) *s3Error {
|
||||
return &s3Error{
|
||||
code: "InvalidCompressionFormat",
|
||||
message: "GZIP is not applicable to the queried object. Please correct the request and try again.",
|
||||
statusCode: 400,
|
||||
cause: err,
|
||||
}
|
||||
}
|
||||
|
||||
func errInvalidDataSource(err error) *s3Error {
|
||||
return &s3Error{
|
||||
code: "InvalidDataSource",
|
||||
|
||||
Reference in New Issue
Block a user