DropBox - Report message on connection error

This commit is contained in:
Ale Martinez
2021-05-18 13:35:39 -03:00
parent d7e1747a2b
commit bee7d48ac2

View File

@@ -159,6 +159,12 @@ Dropbox::readdir(QString path, QStringList &errors)
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
loop.exec();
// oops, no dice
if (reply->error() != 0) {
errors << reply->errorString();
return returning;
}
// did we get a good response ?
QByteArray r = reply->readAll();