Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #70 from weichang-bianjie/dev
Browse files Browse the repository at this point in the history
R4R: fix about getting log errtag
  • Loading branch information
weichang-x authored Feb 18, 2021
2 parents 2ecaab6 + 80f9eb7 commit cd19867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ConvertErr(height int64, txHash, errTag string, err error) error {
func GetErrTag(err error) string {
slice := strings.Split(err.Error(), "-")
if len(slice) == 4 {
return slice[2]
return slice[1]
}
return ""
}
Expand Down

0 comments on commit cd19867

Please sign in to comment.