mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
server_api_error_display_modifier deserialized the JSON error response into a `Vec<&str>`. However, if the error message contained escaped characters, it could not deserialize it into a borrowed string `&str` because unescaping requires allocation. This resulted in a deserialization error and a failure to print the error chain. This change switches the deserialization target to `Vec<String>` to allow allocation. Signed-off-by: Andrei Vagin <avagin@google.com>