Skip to content

Commit f73aa72

Browse files
Merge pull request #319 from wttech/feature/display-root-cause-for-osgi-bundle-find-error
log root cause for osgi find bundle error
2 parents acc385c + c765a7d commit f73aa72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/osgi_bundle_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (bm *OSGiBundleManager) ByFile(localPath string) (*OSGiBundle, error) {
5858
func (bm *OSGiBundleManager) Find(symbolicName string) (*osgi.BundleListItem, error) {
5959
bundles, err := bm.List()
6060
if err != nil {
61-
return nil, fmt.Errorf("%s > cannot find bundle '%s'", bm.instance.IDColor(), symbolicName)
61+
return nil, fmt.Errorf("%s > cannot find bundle '%s': %w", bm.instance.IDColor(), symbolicName, err)
6262
}
6363
item, found := lo.Find(bundles.List, func(i osgi.BundleListItem) bool { return symbolicName == i.SymbolicName })
6464
if found {

0 commit comments

Comments
 (0)