Skip to content

Commit 037f5a5

Browse files
committed
chore: new error message with --plugins-only
1 parent 55d64e6 commit 037f5a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ipa.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ import (
1313
"howett.net/plist"
1414
)
1515

16-
var ErrNoPlist = errors.New("no Info.plist found in ipa")
16+
var (
17+
ErrNoPlist = errors.New("no Info.plist found in ipa")
18+
ErrNoPlugins = errors.New("no plugins found")
19+
)
1720

1821
// key - path to file in provided tmpdir, now patched
1922
// val - path inside ipa
@@ -79,6 +82,9 @@ func findPlists(files []*zip.File, pluginsOnly bool) (plists []string, err error
7982
}
8083

8184
if len(plists) == 0 {
85+
if pluginsOnly {
86+
return nil, ErrNoPlugins
87+
}
8288
return nil, ErrNoPlist
8389
}
8490
return plists, nil

0 commit comments

Comments
 (0)