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

vself, vup: update to use err.msg instead of err

This commit is contained in:
Delyan Angelov
2021-03-16 21:02:52 +02:00
parent 1753445a64
commit 6814c975e5
2 changed files with 7 additions and 7 deletions

View File

@@ -124,9 +124,9 @@ 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 { eprintln('failed removing $backup_file: $err') }
os.rm(backup_file) or { eprintln('failed removing $backup_file: $err.msg') }
}
os.mv(file, backup_file) or { eprintln('failed moving $file: $err') }
os.mv(file, backup_file) or { eprintln('failed moving $file: $err.msg') }
}
fn (app App) git_command(command string) {