owncloudcmd: log sync errors

Previously it was hard to debug some errors since the messages would not
show up in the output.
This commit is contained in:
Christian Kamm 2019-05-07 14:21:57 +02:00 committed by Kevin Ottens
parent b974f579ae
commit ee1078b768
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -535,6 +535,8 @@ restart_sync:
QObject::connect(&engine, &SyncEngine::finished,
[&app](bool result) { app.exit(result ? EXIT_SUCCESS : EXIT_FAILURE); });
QObject::connect(&engine, &SyncEngine::transmissionProgress, &cmd, &Cmd::transmissionProgressSlot);
QObject::connect(&engine, &SyncEngine::syncError,
[](const QString &error) { qWarning() << "Sync error:" << error; });
// Exclude lists