Skip to content

Commit 3651a22

Browse files
err-lint-issue
1 parent e8dee9e commit 3651a22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/commands/scan.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,9 @@ func getUploadURLFromSource(cmd *cobra.Command, uploadsWrapper wrappers.UploadsW
16981698
return "", "", errors.Wrapf(err, "%s: Input in bad format", failedCreating)
16991699
}
17001700
zipFilePath, err = util.CompressFile(sbomFile, "sbomFileCompress", directoryCreationPrefix)
1701+
if err != nil {
1702+
return "", "", errors.Wrapf(err, "%s: Input in bad format", failedCreating)
1703+
}
17011704
} else {
17021705
zipFilePath, directoryPath, err = definePathForZipFileOrDirectory(cmd)
17031706
}

0 commit comments

Comments
 (0)