blob: 62fda484c449f2f5749bfe62ad8c06ffd50e6516 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package aws
import (
"strings"
)
// IsRegionNotExist tries to determine if the error is caused by a region not
// existing, as would be the case in a user typo.
func IsRegionNotExist(err error) bool {
return strings.Contains(err.Error(), "no such host")
}
|