Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #403 from mnottale/extract-error-message
Browse files Browse the repository at this point in the history
extract: Improve error messages when app is not found.
  • Loading branch information
mnottale authored Oct 4, 2018
2 parents 3825a37 + 58fa48a commit 9f9c668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/packager/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ func Extract(name string, ops ...func(*types.App) error) (*types.App, error) {
}
// look for a docker image
ops = append(ops, types.WithSource(types.AppSourceImage))
return extractImage(name, ops...)
app, err := extractImage(name, ops...)
return app, errors.Wrapf(err, "cannot locate application %q in filesystem or registry", name)
}
if s.IsDir() {
// directory: already decompressed
Expand Down

0 comments on commit 9f9c668

Please sign in to comment.