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