Skip to content

Commit 01e7fda

Browse files
committed
Log folder errors
1 parent b6a91c5 commit 01e7fda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AutoSSHApp.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,11 @@ private static long BackupFolder(HostEntry host, string root, string path, SftpC
335335
{
336336
continue;
337337
}
338+
catch (Exception ex)
339+
{
340+
log.WriteLine("Error backing up folder {0}: {1}", fileOrFolder, ex);
341+
continue;
342+
}
338343
if (file.IsRegularFile)
339344
{
340345
Interlocked.Add(ref size, BackupFile(root, file.FullName, client));

0 commit comments

Comments
 (0)