Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bandreghetti committed Jun 10, 2021
1 parent f38e6d9 commit 47f55c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transactions/startupCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ func StartupCheck() errors.ICCError {
if strings.HasPrefix(dtype, "->") {
dtype = strings.TrimPrefix(dtype, "->")
if assets.FetchAssetType(dtype) == nil {
return errors.NewCCError(fmt.Sprintf("invalid arg type %s", arg.DataType), 500)
return errors.NewCCError(fmt.Sprintf("invalid arg type %s in tx %s", arg.DataType, txName), 500)
}
} else {
if assets.FetchDataType(dtype) == nil {
return errors.NewCCError(fmt.Sprintf("invalid arg type %s", arg.DataType), 500)
return errors.NewCCError(fmt.Sprintf("invalid arg type %s in tx %s", arg.DataType, txName), 500)
}
}
}
Expand Down

0 comments on commit 47f55c1

Please sign in to comment.