Skip to content

Commit

Permalink
Merge pull request #292 from godbus/fix/sig_error
Browse files Browse the repository at this point in the history
fix: better error for struct without exported fields
  • Loading branch information
guelfey committed Jan 6, 2022
2 parents d4867b9 + 8533588 commit b98979d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sig.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func getSignature(t reflect.Type, depth *depthCounter) (sig string) {
}
}
if len(s) == 0 {
panic("empty struct")
panic(InvalidTypeError{t})
}
return "(" + s + ")"
case reflect.Array, reflect.Slice:
Expand Down

0 comments on commit b98979d

Please sign in to comment.