From: Christian Kamm Date: Tue, 7 May 2019 12:21:57 +0000 (+0200) Subject: owncloudcmd: log sync errors X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~236 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ee1078b768f5a1ae62b073e992af3181268f4ee9;p=nextcloud-desktop.git owncloudcmd: log sync errors Previously it was hard to debug some errors since the messages would not show up in the output. --- diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp index 12dbb2721..953d2b10d 100644 --- a/src/cmd/cmd.cpp +++ b/src/cmd/cmd.cpp @@ -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