From 20ad4c04293d3a95776e846effb1c959350deb43 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 7 Jan 2021 16:48:02 +0100 Subject: [PATCH] cmd/enter: Add more information to errors on failing to get the host ID https://github.com/containers/toolbox/pull/667 --- src/cmd/enter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/enter.go b/src/cmd/enter.go index 6763d5e..10be78e 100644 --- a/src/cmd/enter.go +++ b/src/cmd/enter.go @@ -123,7 +123,7 @@ func enter(cmd *cobra.Command, args []string) error { hostID, err := utils.GetHostID() if err != nil { - return errors.New("failed to get the host ID") + return fmt.Errorf("failed to get the host ID: %w", err) } hostVariantID, err := utils.GetHostVariantID()