net.unix: make the error messages in unix_test.v more specific (#20537)

This commit is contained in:
Kim Shrier 2024-01-14 18:26:12 -07:00 committed by GitHub
parent bfbad031a5
commit 9268241f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,11 @@ fn handle_conn(mut c unix.StreamConn) {
for {
mut buf := []u8{len: 100, init: 0}
read := c.read(mut buf) or {
println('Server: connection dropped')
println('Server read: connection dropped')
return
}
c.write(buf[..read]) or {
println('Server: connection dropped')
println('Server write: connection dropped')
return
}
}