From bee8d66ead53095fc9b365bccbc64f5297b521e8 Mon Sep 17 00:00:00 2001 From: Nitesh Konkar Date: Fri, 10 Aug 2018 17:38:18 +0530 Subject: [PATCH] cli: Make message of using initrd OR rootfs clearer When starting a kata container, if both initrd and rootfs are provided in the configuration file then the error message presented is "cannot specify an image and an initrd in configuration file" which might be a bit confusing. This fix makes the error message more explicit. Fixes: #563 Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com --- cli/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/config.go b/cli/config.go index 3a26210fd..8c674a3eb 100644 --- a/cli/config.go +++ b/cli/config.go @@ -322,7 +322,7 @@ func newQemuHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) { if image != "" && initrd != "" { return vc.HypervisorConfig{}, - errors.New("cannot specify an image and an initrd in configuration file") + errors.New("having both an image and an initrd defined in the configuration file is not supported") } firmware, err := h.firmware()