From a3b25c45f52da8a9a7806a3279b726ca49a98577 Mon Sep 17 00:00:00 2001 From: skilion Date: Sat, 11 Mar 2017 12:07:21 +0100 Subject: [PATCH] catch CurlTimeoutException --- src/sync.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sync.d b/src/sync.d index 816d68a1..4a01b7a8 100644 --- a/src/sync.d +++ b/src/sync.d @@ -1,3 +1,4 @@ +import std.net.curl: CurlTimeoutException; import std.exception: ErrnoException; import std.algorithm, std.datetime, std.file, std.json, std.path, std.regex; import std.stdio, std.string; @@ -121,6 +122,8 @@ final class SyncEngine throw new SyncException(e.msg, e); } catch (FileException e) { throw new SyncException(e.msg, e); + } catch (CurlTimeoutException e) { + throw new SyncException(e.msg, e); } catch (OneDriveException e) { throw new SyncException(e.msg, e); }