implement a string representation for crypto error

This commit is contained in:
Marten Seemann
2019-03-07 09:55:55 +09:00
parent ab47ba1021
commit e5303df419
4 changed files with 22 additions and 5 deletions

View File

@@ -35,6 +35,6 @@ var _ = Describe("error codes", func() {
})
It("has a string representation for unknown error codes", func() {
Expect(ErrorCode(1337).String()).To(Equal("unknown error code: 1337"))
Expect(ErrorCode(0x1337).String()).To(Equal("unknown error code: 0x1337"))
})
})