Skip to content

Commit

Permalink
update err desc to be more explicit
Browse files Browse the repository at this point in the history
Signed-off-by: Cassandra Coyle <[email protected]>
  • Loading branch information
cicoyle committed Oct 23, 2024
1 parent 9bc7d82 commit 8f177e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actor/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func suiteMethod(method reflect.Method) (*MethodType, error) {
)

if outNum > 2 || outNum == 0 {
return nil, errors.New("num out invalid")
return nil, errors.New("num out invalid, add a return value to the function")

Check warning on line 301 in actor/manager/manager.go

View check run for this annotation

Codecov / codecov/patch

actor/manager/manager.go#L301

Added line #L301 was not covered by tests
}

// The latest return type of the method must be error.
Expand Down

0 comments on commit 8f177e2

Please sign in to comment.