cmd/enter: Add more information to errors on failing to get the host ID

https://github.com/containers/toolbox/pull/667
This commit is contained in:
Debarshi Ray 2021-01-07 16:48:02 +01:00
parent 26ea367ee8
commit 20ad4c0429
1 changed files with 1 additions and 1 deletions

View File

@ -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()