Closed sitano closed 1 year ago
Go framework needs to support errors nesting via "errors" package:
err = fmt.Errorf("foo: %w", error(maelstrom.NewRPCError(maelstrom.Crash, "foo"))) if maelstrom.ErrorCode(err) == maelstrom.Crash { // do something useful }
For checking wrapped errors returned from KV and another API that can fail due to whatever reason including context timeouts
Seems... reasonable! I'm completely unqualified to review Go, so hopefully this doesn't break anything. :-)
Go framework needs to support errors nesting via "errors" package:
For checking wrapped errors returned from KV and another API that can fail due to whatever reason including context timeouts