diff --git a/internal/modifier/csv.go b/internal/modifier/csv.go index aa97f728..84eb0c6d 100644 --- a/internal/modifier/csv.go +++ b/internal/modifier/csv.go @@ -81,6 +81,9 @@ func NewCSVModifier(logger *logrus.Logger, cfg *config.Config, ociSpec oci.Spec) tegra.WithNVIDIACTKPath(cfg.NVIDIACTKConfig.Path), tegra.WithCSVFiles(csvFiles), ) + if err != nil { + return nil, fmt.Errorf("failed to construct discoverer: %v", err) + } discoverModifier, err := NewModifierFromDiscoverer(logger, d) if err != nil {