Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Log the reason why the bundle cannot be loaded and need to be extracted
Because in case of a read error the bundle can be re-extracted, it is
better to log why.
  • Loading branch information
guillaumerose authored and gbraad committed Nov 9, 2020
1 parent 603bdfa commit 329ec11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/crc/machine/machine.go
Expand Up @@ -69,6 +69,7 @@ func getCrcBundleInfo(bundlePath string) (*bundle.CrcBundleInfo, error) {
logging.Infof("Loading bundle: %s ...", bundleName)
return bundleInfo, nil
}
logging.Debugf("Failed to load bundle %s: %v", bundleName, err)
logging.Infof("Extracting bundle: %s ...", bundleName)
return bundle.Extract(bundlePath)
}
Expand Down

0 comments on commit 329ec11

Please sign in to comment.