Skip to content

Commit

Permalink
nit: log unexpected type in error
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush committed Jul 30, 2024
1 parent 3b1daac commit 0c20e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion warp/handlers/signature_request_p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package handlers

import (
"context"
"fmt"
"time"

"github.com/ava-labs/avalanchego/codec"
Expand Down Expand Up @@ -98,7 +99,7 @@ func (s *SignatureRequestHandlerP2P) AppRequest(
default:
return nil, &common.AppError{
Code: ErrFailedToParse,
Message: "unknown payload type",
Message: fmt.Sprintf("unknown payload type: %T", p),
}
}
if err != nil {
Expand Down

0 comments on commit 0c20e2c

Please sign in to comment.