Skip to content

Commit

Permalink
Merge pull request #6 from iFaceless/fix-err-msg
Browse files Browse the repository at this point in the history
馃悰 fix: error message
  • Loading branch information
iFaceless committed Oct 17, 2019
2 parents 5e4c60c + bdf2a53 commit ad96241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func invoke(ctx context.Context, any reflect.Value, method reflect.Value, method
if argType.ConvertibleTo(inType) {
in[i] = argValue.Convert(inType)
} else {
return reflect.ValueOf(nil), fmt.Errorf("method '%s', param[%d] must be %s, not %s", methodNameRepr, i, inType, argType)
return reflect.ValueOf(nil), fmt.Errorf("param[%d] of method '%s' must be %s, not %s", i, methodNameRepr, argType, inType)
}
}

Expand Down

0 comments on commit ad96241

Please sign in to comment.