Skip to content

Commit

Permalink
chore: improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Aug 4, 2021
1 parent 4ee859f commit b2283f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dot/rpc/subscription/listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (g *GrandpaJustificationListener) Listen() {
just, err := g.wsconn.BlockAPI.GetJustification(info.Header.Hash())
if err != nil {
g.wsconn.safeSendError(float64(g.subID), big.NewInt(InvalidRequestCode),
fmt.Sprintf("error while retrieve justification: %v", err))
fmt.Sprintf("failed to retrieve justification: %v", err))
}

g.wsconn.safeSend(newSubscriptionResponse(grandpaJustificationsMethod, g.subID, common.BytesToHex(just)))
Expand Down
2 changes: 1 addition & 1 deletion dot/rpc/subscription/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (c *WSConn) HandleComm() {
err = listener.Stop()

if err != nil {
logger.Warn("problems to cancel listen goroutines", "method", method, "error", err)
logger.Warn("failed to cancel listener goroutine", "method", method, "error", err)
}

continue
Expand Down

0 comments on commit b2283f2

Please sign in to comment.