Skip to content

Commit

Permalink
Merge pull request duplicati#3984 from warwickmm/cancelled_backup_war…
Browse files Browse the repository at this point in the history
…ning

Issue warning when backup is cancelled by user
  • Loading branch information
verhoek committed Nov 15, 2019
2 parents b1e3c6f + 93bc478 commit 2f6a1e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Duplicati/Library/Main/Operation/BackupHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
using Duplicati.Library.Utility;
using Duplicati.Library.Common.IO;
using Duplicati.Library.Common;
using Duplicati.Library.Logging;
using Duplicati.Library.Main.Operation.Backup;
using Duplicati.Library.Main.Operation.Common;

Expand Down Expand Up @@ -244,6 +245,7 @@ private static async Task RunMainOperation(IEnumerable<string> sources, Snapshot
if (token.IsCancellationRequested)
{
result.PartialBackup = true;
Log.WriteWarningMessage(LOGTAG, "CancellationRequested", null, "Cancellation was requested by user.");
}
else
{
Expand Down

0 comments on commit 2f6a1e2

Please sign in to comment.