1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: improve the diagnostic messages from v up and v self even more

This commit is contained in:
Delyan Angelov
2021-01-28 00:45:38 +02:00
parent 242d7d0fc0
commit 924fd2bf2a
2 changed files with 9 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ fn (app App) show_current_v_version() {
fn (app App) backup(file string) {
backup_file := '${file}_old.exe'
if os.exists(backup_file) {
os.rm(backup_file) or { panic(err) }
os.rm(backup_file) or { eprintln('failed removing $backup_file: $err') }
}
os.mv(file, backup_file) or { panic(err) }
}