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:
parent
924fd2bf2a
commit
a8f1824e51
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user