From 87b6e36391a0a37f5136910dfc331807add61eef Mon Sep 17 00:00:00 2001 From: sotech117 Date: Tue, 24 Oct 2023 01:12:05 +0000 Subject: more descriptive errors to match reference. final commit :) --- cmd/vhost/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd/vhost') diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go index e83d1bf..c0e5ad8 100644 --- a/cmd/vhost/main.go +++ b/cmd/vhost/main.go @@ -71,11 +71,9 @@ func main() { if neighbor.VipAddr == address || neighbor.VipAddr == hop.VIP && hop.Type == "S" { bytesWritten, err := ipstack.SendIP(&myAddr, neighbor, ipstack.TEST_PROTOCOL, messageToSendBytes, ipAddr, nil) + fmt.Printf("Sent %d bytes to %s\n", bytesWritten, neighbor.VipAddr.String()) if err != nil { fmt.Println(err) - } else { - fmt.Printf("Sent %d bytes to %s\n", bytesWritten, neighbor.VipAddr.String()) - } } } -- cgit v1.2.3-70-g09d2