mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v build-tools: improve error reporting on moving back executables
This commit is contained in:
parent
2f4a49994a
commit
fbb9f316f5
|
@ -58,9 +58,10 @@ fn main() {
|
||||||
os.mv_by_cp(tpath, os.join_path(tfolder, tname, texe)) or { panic(err) }
|
os.mv_by_cp(tpath, os.join_path(tfolder, tname, texe)) or { panic(err) }
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
os.mv_by_cp(tpath, os.join_path(tfolder, texe)) or {
|
target_path := os.join_path(tfolder, texe)
|
||||||
if !err.msg.contains('vbuild-tools') {
|
os.mv_by_cp(tpath, target_path) or {
|
||||||
eprintln(err)
|
if !err.msg.contains('vbuild-tools') && !err.msg.contains('vtest-all') {
|
||||||
|
eprintln('error while moving $tpath to $target_path: $err.msg')
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user