fix some error checking

This commit is contained in:
josch
2014-12-05 14:40:04 +01:00
parent c04151f2e1
commit dd3291a9c4
3 changed files with 9 additions and 5 deletions

View File

@@ -1388,7 +1388,11 @@ void folder_tree_update(folder_tree * tree, mfconn * conn, bool expect_changes)
uint64_t revision;
if (!expect_changes) {
mfconn_api_device_get_status(conn, &revision_remote);
retval = mfconn_api_device_get_status(conn, &revision_remote);
if (retval != 0) {
fprintf(stderr, "device/get_status failed\n");
return;
}
if (tree->revision == revision_remote) {
fprintf(stderr, "Request to update but nothing to do\n");