mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: show non zero codes on bubbled error_with_code(msg,code) errors
This commit is contained in:
@@ -20,7 +20,7 @@ fn test_signal_opt_invalid_argument() {
|
||||
assert false
|
||||
}
|
||||
os.signal_opt(.kill, default_handler) or {
|
||||
assert err.msg() == 'Invalid argument'
|
||||
assert err.msg() == 'Invalid argument; code: 22'
|
||||
assert err.code() == 22
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user