161
aliasName, err := mapper.GetAlias(saName, namespaceName)
162
if err != nil {
163
>
// Silently ignore serviceerror.InvalidArgument because it indicates unmapped field (alias was deleted, for example).
mapper.go
164
>
// IMPORTANT: AliasFields should never return serviceerror.InvalidArgument because it is used by Poll API and the error
165
>
// goes through up to SDK, which shutdowns worker when it receives serviceerror.InvalidArgument as poll response.
166
>
var invalidArgumentErr *serviceerror.InvalidArgument
167
>
if errors.As(err, &invalidArgumentErr) {
168
>
continue
169
}
170
return nil, err