Skip to content

Commit

Permalink
Include bad header in the error
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Nov 25, 2021
1 parent 8cad0a9 commit d3555de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ReceiveFrame(relay io.Reader, fr *frame.Frame) error {

// verify header CRC
if !fr.VerifyCRC(fr.Header()) {
return errors.E(op, errors.Str("CRC verification failed"))
return errors.E(op, errors.Errorf("CRC verification failed, bad header: %s", fr.Header()))
}

// read the read payload
Expand Down

0 comments on commit d3555de

Please sign in to comment.