mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-29 19:02:59 +02:00
Update onedrive.d
* Remove try block - incompatible with auto designation needed to open file ...
This commit is contained in:
parent
aa47f1119f
commit
68cc51ab4d
|
@ -803,14 +803,7 @@ final class OneDriveApi
|
||||||
{
|
{
|
||||||
// Threshold for displaying download bar
|
// Threshold for displaying download bar
|
||||||
long thresholdFileSize = 4 * 2^^20; // 4 MiB
|
long thresholdFileSize = 4 * 2^^20; // 4 MiB
|
||||||
|
auto file = File(filename, "wb");
|
||||||
try {
|
|
||||||
// open file as write in binary mode
|
|
||||||
auto file = File(filename, "wb");
|
|
||||||
} catch (FileException e) {
|
|
||||||
// display the error message
|
|
||||||
displayFileSystemErrorMessage(e.msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
// function scopes
|
// function scopes
|
||||||
scope(exit) {
|
scope(exit) {
|
||||||
|
|
Loading…
Reference in a new issue