mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-29 03:52:27 +02:00
catch CurlTimeoutException
This commit is contained in:
parent
1beadf2577
commit
a3b25c45f5
|
@ -1,3 +1,4 @@
|
||||||
|
import std.net.curl: CurlTimeoutException;
|
||||||
import std.exception: ErrnoException;
|
import std.exception: ErrnoException;
|
||||||
import std.algorithm, std.datetime, std.file, std.json, std.path, std.regex;
|
import std.algorithm, std.datetime, std.file, std.json, std.path, std.regex;
|
||||||
import std.stdio, std.string;
|
import std.stdio, std.string;
|
||||||
|
@ -121,6 +122,8 @@ final class SyncEngine
|
||||||
throw new SyncException(e.msg, e);
|
throw new SyncException(e.msg, e);
|
||||||
} catch (FileException e) {
|
} catch (FileException e) {
|
||||||
throw new SyncException(e.msg, e);
|
throw new SyncException(e.msg, e);
|
||||||
|
} catch (CurlTimeoutException e) {
|
||||||
|
throw new SyncException(e.msg, e);
|
||||||
} catch (OneDriveException e) {
|
} catch (OneDriveException e) {
|
||||||
throw new SyncException(e.msg, e);
|
throw new SyncException(e.msg, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue