func DynamoIgnoreError()

in nimo-shake/common/error.go [45:70]


func DynamoIgnoreError(err error, op string, isFullSyncStage bool) bool {
	if err == nil {
		return true
	}

	switch op {
	case "i":
	case "u":
		if isFullSyncStage {
			if err.Error() == "xxxx" { // PathNotViable
				return true
			}
		}
	case "d":
		if err.Error() == "xxxx" { // NamespaceNotFound
			return true
		}
	case "c":
		if err.Error() == "xxxx" { // NamespaceNotFound
			return true
		}
	default:
		return false
	}
	return false
}