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:
parent
26ea367ee8
commit
20ad4c0429
|
|
@ -123,7 +123,7 @@ func enter(cmd *cobra.Command, args []string) error {
|
||||||
|
|
||||||
hostID, err := utils.GetHostID()
|
hostID, err := utils.GetHostID()
|
||||||
if err != nil {
|
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()
|
hostVariantID, err := utils.GetHostVariantID()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue