adedd error message for download failures

pull/23/head
JuanJakobo 2021-02-22 17:55:29 +01:00
parent 3129a7fc91
commit 8516b6e827
1 changed files with 10 additions and 3 deletions

View File

@ -206,10 +206,17 @@ int EventHandler::pointerHandler(const int type, const int par1, const int par2)
_nextcloud.switchWorkOffline(); _nextcloud.switchWorkOffline();
} }
OpenProgressbar(1, "Downloading...", "Check network connection", 0, EventHandler::DialogHandlerStatic); OpenProgressbar(1, "Downloading...", "Check network connection", 0, EventHandler::DialogHandlerStatic);
_nextcloud.download(itemID); try
{
_nextcloud.download(itemID);
}
catch (const std::exception &e)
{
Log::writeLog(e.what());
Message(ICON_ERROR, "Error", "Something has gone wrong. Please check the logs. (/system/config/nextcloud/)", 1200);
}
CloseProgressbar(); CloseProgressbar();
//TODO Include Sync notice for folders
_listView->drawEntry(itemID); _listView->drawEntry(itemID);
} }
} }