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

vup: log potential backup errors, but do not stop

This commit is contained in:
Delyan Angelov 2021-01-28 00:48:47 +02:00
parent 924fd2bf2a
commit a8f1824e51
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -110,7 +110,7 @@ fn (app App) backup(file string) {
if os.exists(backup_file) {
os.rm(backup_file) or { eprintln('failed removing $backup_file: $err') }
}
os.mv(file, backup_file) or { panic(err) }
os.mv(file, backup_file) or { eprintln('failed moving $file: $err') }
}
fn (app App) git_command(command string) {