mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: bring back panic(err.msg)
-> panic(err)
(#9022)
This commit is contained in:
@ -56,7 +56,7 @@ fn (mut dtp DTP) read() ?[]byte {
|
||||
}
|
||||
|
||||
fn (mut dtp DTP) close() {
|
||||
dtp.conn.close() or { panic(err.msg) }
|
||||
dtp.conn.close() or { panic(err) }
|
||||
}
|
||||
|
||||
struct FTP {
|
||||
|
@ -8,14 +8,14 @@ fn test_ftp_cleint() {
|
||||
// that is why it is not a very good idea to run it in CI.
|
||||
// If you want to run it manually, use:
|
||||
// `v -d network vlib/net/ftp/ftp_test.v`
|
||||
ftp_client_test_inside() or { panic(err.msg) }
|
||||
ftp_client_test_inside() or { panic(err) }
|
||||
}
|
||||
|
||||
fn ftp_client_test_inside() ? {
|
||||
mut zftp := ftp.new()
|
||||
// eprintln(zftp)
|
||||
defer {
|
||||
zftp.close() or { panic(err.msg) }
|
||||
zftp.close() or { panic(err) }
|
||||
}
|
||||
connect_result := zftp.connect('ftp.redhat.com') ?
|
||||
assert connect_result
|
||||
|
Reference in New Issue
Block a user