Files
cloudpods/pkg/util/aliyun/errors.go
T

16 lines
206 B
Go

package aliyun
import (
"fmt"
"strings"
)
func isError(err error, code string) bool {
errStr := fmt.Sprintf("%s", err)
if strings.Index(errStr, code) > 0 {
return true
} else {
return false
}
}