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

Handle string errors in Decode() #60

Merged
merged 1 commit into from
Mar 23, 2017
Merged

Handle string errors in Decode() #60

merged 1 commit into from
Mar 23, 2017

Commits on Mar 21, 2017

  1. Handle string errors in Decode()

    It's possible that Decode() panics with a plain `string`. The `string` is
    type asserted to `error` which fails due to `string` not implementing
    the `error` interface.
    
    Example panic with string:
    
        reflect: reflect.Value.Set using value obtained using unexported field
    sebnow committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    51df737 View commit details
    Browse the repository at this point in the history