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>
This commit is contained in:
parent
fbce8c25d8
commit
1fa57f5543
6
hmp.c
6
hmp.c
|
@ -1123,11 +1123,7 @@ void hmp_migrate_incoming(Monitor *mon, const QDict *qdict)
|
||||||
|
|
||||||
qmp_migrate_incoming(uri, &err);
|
qmp_migrate_incoming(uri, &err);
|
||||||
|
|
||||||
if (err) {
|
hmp_handle_error(mon, &err);
|
||||||
monitor_printf(mon, "%s\n", error_get_pretty(err));
|
|
||||||
error_free(err);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict)
|
void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict)
|
||||||
|
|
Loading…
Reference in New Issue