mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: update repo to use the new error handling syntax (#8950)
This commit is contained in:
@ -44,8 +44,8 @@ fn echo() ? {
|
||||
}
|
||||
|
||||
fn test_tcp() {
|
||||
mut l := net.listen_tcp(test_port) or { panic(err) }
|
||||
mut l := net.listen_tcp(test_port) or { panic(err.msg) }
|
||||
go echo_server(mut l)
|
||||
echo() or { panic(err) }
|
||||
echo() or { panic(err.msg) }
|
||||
l.close() or { }
|
||||
}
|
||||
|
Reference in New Issue
Block a user