trivial: fu-util: don't show warnings for no reports to upload

```
(fwupdmgr:5605): FuMain-WARNING **: 22:16:06.048: No reports require uploading
```
This commit is contained in:
Mario Limonciello 2019-10-06 22:19:47 -05:00 committed by Mario Limonciello
parent 71d4b08445
commit 9213c5c7bf

View File

@ -1801,7 +1801,10 @@ fu_util_maybe_send_reports (FuUtilPrivate *priv, const gchar *remote_id,
return FALSE;
if (fwupd_remote_get_automatic_reports (remote)) {
if (!fu_util_report_history (priv, NULL, &error_local))
g_warning ("%s", error_local->message);
if (!g_error_matches (error_local,
FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED))
g_warning ("%s", error_local->message);
}
return TRUE;