vup: log potential backup errors, but do not stop

pull/8386/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ fn (app App) backup(file string) {
if os.exists(backup_file) { 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') }
} }
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) { fn (app App) git_command(command string) {