summaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-02-26 14:54:39 +0000
committerJuan Quintela <quintela@redhat.com>2015-03-17 15:20:37 +0100
commit1fa57f5543aaff62a6fff63782e6c7dd54773628 (patch)
treefc20d7ee7083ae78b11fadda2fc357f69c3af0ec /hmp.c
parentfbce8c25d886b207ebb290d911a7d99abd652676 (diff)
migrate_incoming: use hmp_handle_error
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hmp.c b/hmp.c
index f6cde86b93..84fb585dfd 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1123,11 +1123,7 @@ void hmp_migrate_incoming(Monitor *mon, const QDict *qdict)
qmp_migrate_incoming(uri, &err);
- if (err) {
- monitor_printf(mon, "%s\n", error_get_pretty(err));
- error_free(err);
- return;
- }
+ hmp_handle_error(mon, &err);
}
void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict)