"multipass <command> --format=json" prints plaintext when the command fails
Author: xmkgCreated Sep 16, 2026Updated Sep 16, 2026
Labelsneeds triage
Describe the bug
multipass <command> --format=json does not output JSON when the command fails.
To Reproduce
multipass info nonexisting-instance --format=json- Observe
info failed: The following errors occurred: instance "nonexisting-instance" does not existis printed
Expected behavior The error message should be encapsulated in JSON, like
{
"error_msg": "info failed: The following errors occurred: instance \"nonexisting-instance\" does not exist`"
"exit_code": 1
}Source: canonical/multipass