migration/colo: Improve an x-colo-lost-heartbeat error message
commit43aef7e632c98573d907e7d86bbf3a1d6cc68f88
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 Feb 2023 07:51:14 +0000 (7 08:51 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 23 Feb 2023 13:10:17 +0000 (23 14:10 +0100)
treef2d002a7011cc40625a5607d8f0b9badba6b1892
parent0ac02656e28b5e3f1d8ed6c123bd38036df95e9e
migration/colo: Improve an x-colo-lost-heartbeat error message

The QERR_ macros are leftovers from the days of "rich" error objects.
We've been trying to reduce their remaining use.

Get rid of a use of QERR_FEATURE_DISABLED, and improve the somewhat
imprecise error message

    (qemu) x_colo_lost_heartbeat
    Error: The feature 'colo' is not enabled

to

    Error: VM is not in COLO mode

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230207075115.1525-12-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
migration/colo-failover.c