correct rsync error logging deficiency in routine_list.nim

master
itwrx 1 year ago
parent ebf986e38a
commit 7e33cb5773
  1. 2
      views/routine_list.nim

@ -66,6 +66,8 @@ proc rsyncThread(list: RoutineListState) {.thread.} =
rsyncRun = execCmdEx(rsyncRunCmd)
if rsyncRun.exitCode != 0:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error (" & $rsyncRun.output & ") while attempting to back up " & source & " to " & destination)
else:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error (" & $rsyncRun.output & ") while attempting to back up " & source & " to " & destination)
if rsyncErrors.len > 0:
list.runStatus = "<span color=\"#ff6b6b\" size=\"large\">Error! Please see the log at ~/.ez-bkup/errors.log</span>"
for err in rsyncErrors:

Loading…
Cancel
Save