mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01)
This commit is contained in:
@ -66,8 +66,9 @@ fn main() {
|
||||
}
|
||||
target_path := os.join_path(tfolder, texe)
|
||||
os.mv_by_cp(tpath, target_path) or {
|
||||
if !err.msg.contains('vbuild-tools') && !err.msg.contains('vtest-all') {
|
||||
eprintln('error while moving $tpath to $target_path: $err.msg')
|
||||
emsg := err.msg()
|
||||
if !emsg.contains('vbuild-tools') && !emsg.contains('vtest-all') {
|
||||
eprintln('error while moving $tpath to $target_path: $emsg')
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user