Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier errors? #4

Open
cryptix opened this issue Sep 15, 2015 · 0 comments
Open

Prettier errors? #4

cryptix opened this issue Sep 15, 2015 · 0 comments

Comments

@cryptix
Copy link

cryptix commented Sep 15, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant