mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
s3 cache client-side support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
22
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go
generated
vendored
Normal file
22
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
package ini
|
||||
|
||||
import "fmt"
|
||||
|
||||
// UnableToReadFile is an error indicating that a ini file could not be read
|
||||
type UnableToReadFile struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
// Error returns an error message and the underlying error message if present
|
||||
func (e *UnableToReadFile) Error() string {
|
||||
base := "unable to read file"
|
||||
if e.Err == nil {
|
||||
return base
|
||||
}
|
||||
return fmt.Sprintf("%s: %v", base, e.Err)
|
||||
}
|
||||
|
||||
// Unwrap returns the underlying error
|
||||
func (e *UnableToReadFile) Unwrap() error {
|
||||
return e.Err
|
||||
}
|
Reference in New Issue
Block a user