terraform/builtin/providers/pagerduty/errors.go

12 lines
194 B
Go

package pagerduty
import "strings"
func isNotFound(err error) bool {
if strings.Contains(err.Error(), "Failed call API endpoint. HTTP response code: 404") {
return true
}
return false
}