Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 9f9c668

Browse files
authored
Merge pull request #403 from mnottale/extract-error-message
extract: Improve error messages when app is not found.
2 parents 3825a37 + 58fa48a commit 9f9c668

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/packager/extract.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ func Extract(name string, ops ...func(*types.App) error) (*types.App, error) {
118118
}
119119
// look for a docker image
120120
ops = append(ops, types.WithSource(types.AppSourceImage))
121-
return extractImage(name, ops...)
121+
app, err := extractImage(name, ops...)
122+
return app, errors.Wrapf(err, "cannot locate application %q in filesystem or registry", name)
122123
}
123124
if s.IsDir() {
124125
// directory: already decompressed

0 commit comments

Comments
 (0)