mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
16 lines
206 B
Go
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
|
|
}
|
|
}
|