Skip to content

Commit

Permalink
Merge pull request #246 from runcom/fix-panic-copy
Browse files Browse the repository at this point in the history
copy: fix panic on error
  • Loading branch information
runcom authored Mar 3, 2017
2 parents 7805fe0 + 5f86502 commit 1d7e25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func Image(policyContext *signature.PolicyContext, destRef, srcRef types.ImageRe
}
src, err := image.FromUnparsedImage(unparsedImage)
if err != nil {
retErr = errors.Wrapf(err, "Error initializing image from source %s", transports.ImageName(srcRef))
return errors.Wrapf(err, "Error initializing image from source %s", transports.ImageName(srcRef))
}
unparsedImage = nil
defer func() {
Expand Down

0 comments on commit 1d7e25b

Please sign in to comment.