You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wechatminiprogram/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go

23 lines
483 B

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
}