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:
@@ -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) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user