Skip to content

Prettier errors? #4

Description

@cryptix

if you use is.Nil(err) you might get:

some_code.go:43: expected nil: &json.UnmarshalTypeError{Value:"string", Type:(*reflect.rtype)(0xbadc0de), Offset:1234}

where you could get: some_code.go:43: json: cannot unmarshal string into Go value of type int

I like the similicity of using fmt.Sprintf("%#v") but might there be a nicer way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions