Skip to content

Commit

Permalink
Merge pull request #3608 from filecoin-project/fix/second-argument-er…
Browse files Browse the repository at this point in the history
…ror-message

fix: second argument error message
  • Loading branch information
magik6k authored Sep 7, 2020
2 parents d3e5092 + 9d9d2a2 commit 551ff6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/vm/invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (*Invoker) transform(instance Invokee) (nativeCode, error) {
return nil, newErr("first arguemnt should be vmr.Runtime")
}
if t.In(1).Kind() != reflect.Ptr {
return nil, newErr("second argument should be Runtime")
return nil, newErr("second argument should be of kind reflect.Ptr")
}

if t.NumOut() != 1 {
Expand Down

0 comments on commit 551ff6a

Please sign in to comment.