1
0
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:
Delyan Angelov 2021-03-14 18:40:00 +02:00
parent 2f4a49994a
commit fbb9f316f5
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -58,9 +58,10 @@ fn main() {
os.mv_by_cp(tpath, os.join_path(tfolder, tname, texe)) or { panic(err) }
continue
}
os.mv_by_cp(tpath, os.join_path(tfolder, texe)) or {
if !err.msg.contains('vbuild-tools') {
eprintln(err)
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')
}
continue
}