Skip to content

Commit

Permalink
net: improve error message in .port()
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed May 5, 2024
1 parent a1f3624 commit 44c84f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/net/address.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn (a Addr) port() !u16 {
return error('unix addr has no port')
}
.unspec {
return error('unspec addr family when obtain port')
return error('cannot find port for unspec addr family')
}
}
}
Expand Down

0 comments on commit 44c84f6

Please sign in to comment.