Skip to content

Commit

Permalink
fixes nil pointer deref
Browse files Browse the repository at this point in the history
  • Loading branch information
jmakinen-ncc committed Jan 24, 2020
1 parent 15f7ac9 commit e1de447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pillage/pillage.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (image *ImageData) Store(options *StorageOptions) error {

fs, err := crane.Pull(image.Reference, options.CraneOptions...)
if err != nil {
image.Error = errors.New(image.Error.Error() + err.Error())
image.Error = err
}
if options.CachePath != "" {
fs = cache.Image(fs, cache.NewFilesystemCache(options.CachePath))
Expand Down

0 comments on commit e1de447

Please sign in to comment.