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

Commit

Permalink
fix about getting log errtag
Browse files Browse the repository at this point in the history
  • Loading branch information
weichang-x committed Feb 18, 2021
1 parent 1342191 commit 80f9eb7
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 80f9eb7

Please sign in to comment.