Skip to content

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented Dec 27, 2019

Remove ToError, instead use errors.As
Add Unwrap method

Also remove Convey from spkt test.

Fixes #3312


This change is Reviewable

@lukedirtwalker lukedirtwalker requested a review from scrye December 27, 2019 13:33
Remove ToError, instead use errors.As
Add Unwrap method

Also remove Convey from spkt test.

Fixes scionproto#3312
Copy link
Contributor

@scrye scrye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker)


go/lib/spkt/cmnhdr.go, line 44 at r1 (raw file):

// ErrUnsupportedVersion indicates an unsupported SCION version.
var ErrUnsupportedVersion = serrors.New("unsuppoerted SCION version")

typo: unsuppoerted

Copy link
Collaborator Author

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @scrye)


go/lib/spkt/cmnhdr.go, line 44 at r1 (raw file):

Previously, scrye (Sergiu Costea) wrote…

typo: unsuppoerted

Done.

Copy link
Contributor

@scrye scrye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit 99ce7f6 into scionproto:master Dec 30, 2019
@lukedirtwalker lukedirtwalker deleted the pubSCMPError branch December 30, 2019 11:47
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

Successfully merging this pull request may close these issues.

Make scmp error compatible with golang 1.13 error functionality.
2 participants