forked from security/hakurei
internal/pipewire: cleaner error message for unsupported type
The error string itself is descriptive enough, so use it as the error message directly. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -644,7 +644,8 @@ func (registry *Registry) destroy(id Int) error {
|
||||
// An UnsupportedObjectTypeError is the name of a type not known by the server [Registry].
|
||||
type UnsupportedObjectTypeError string
|
||||
|
||||
func (e UnsupportedObjectTypeError) Error() string { return "unsupported object type " + string(e) }
|
||||
func (e UnsupportedObjectTypeError) Error() string { return "unsupported object type " + string(e) }
|
||||
func (e UnsupportedObjectTypeError) Message() string { return e.Error() }
|
||||
|
||||
// Core holds state of [PW_TYPE_INTERFACE_Core].
|
||||
type Core struct {
|
||||
|
||||
Reference in New Issue
Block a user