Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const (
)

var (
errComposeNotExists = errors.New("plasma-compose.yaml doesn't exist")
errComposeBadStructure = errors.New("incorrect mapping for plasma-compose.yaml, ensure structure is correct")
errComposeNotExists = errors.New("plasma-compose.yaml doesn't exist")
)

type keyringWrapper struct {
Expand Down
7 changes: 4 additions & 3 deletions compose/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import (
)

const (
// TargetLatest is fallback to latest master branch.
TargetLatest = "latest"
// TargetLatest is a fallback to the latest version.
TargetLatest = "latest"
tplComposeBadStructure = "plasma-compose.yaml parsing failed - %w"
)

var (
Expand Down Expand Up @@ -126,7 +127,7 @@ func Lookup(fsys fs.FS) (*YamlCompose, error) {

cfg, err := parseComposeYaml(f)
if err != nil {
return &YamlCompose{}, errComposeBadStructure
return &YamlCompose{}, fmt.Errorf(tplComposeBadStructure, err)
}

return cfg, nil
Expand Down
4 changes: 4 additions & 0 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func (p *Plugin) DiscoverActions(_ context.Context) ([]*action.Action, error) {
},
p.k,
)
if err != nil {
return err
}

c.SetLogger(log)
c.SetTerm(term)

Expand Down
Loading