Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiSubira committed May 8, 2024
1 parent c8e7b03 commit 9df5657
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/snet/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ func (c *scionConnReader) read(b []byte) (int, *UDPAddr, error) {
if c.local.IA != pkt.Destination.IA ||
c.local.Host.AddrPort() != pktAddrPort {
return 0, nil, serrors.New("packet is destined to a different host",
"local ia", c.local.IA,
"local host", c.local.Host,
"pkt destination IA", pkt.Destination.IA,
"pkt destination host", pktAddrPort,
"local_isd_as", c.local.IA,
"local_host", c.local.Host,
"pkt_destination_isd_as", pkt.Destination.IA,
"pkt_destination_host", pktAddrPort,
)
}

Expand Down

0 comments on commit 9df5657

Please sign in to comment.