Skip to content

dbus.SignatureOf(time.Time{}) panics with a confusing message #289

@zyga

Description

@zyga

As can be seen on https://go.dev/play/p/82i2tTP60Q- time.Time cannot be easily handled with D-Bus. This in itself is not a problem. It would be good to provide a more accurate error message: panic(fmt.Errorf("cannot compute signature of empty struct %T", t). This is especially important if the time.Time type is buried deep inside other types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions