cli
cli copied to clipboard
Create a routine to parse `ErrNotFound` from returned error
Context: https://github.com/ignite/cli/pull/2516/files#r892287966
Create a routine with the duplicated logic:
if cosmoserror.Unwrap(err) == cosmoserror.ErrNotFound {
return "", ErrObjectNotFound
} else if err != nil {
return "", err
}