Skip to content

Commit

Permalink
correct system.configure error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Feb 25, 2022
1 parent f81523e commit 0177cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions pkg/plugin/system/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ import (
"reflect"
"time"

"github.com/spf13/cobra"
"golang.org/x/sync/errgroup"

yaml "gopkg.in/yaml.v2"

"github.com/spf13/cobra"

rootFlags "aspect.build/cli/pkg/aspect/root/flags"
"aspect.build/cli/pkg/aspecterrors"
"aspect.build/cli/pkg/interceptors"
Expand Down Expand Up @@ -90,7 +88,7 @@ func (ps *pluginSystem) Configure(streams ioutils.Streams) error {
}

if err := aspectplugin.Setup(propertiesBytes); err != nil {
return fmt.Errorf("failed to setup plugin: %w", err)
return fmt.Errorf("failed to configure plugin system: %w", err)
}

ps.addPlugin(aspectplugin)
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/system/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ func TestConfigure(t *testing.T) {

err := ps.Configure(streams)

g.Expect(err).To(MatchError("failed to setup plugin: setup error"))
g.Expect(err).To(MatchError("failed to configure plugin system: setup error"))
})

t.Run("marshaled properties are passed to plugin.Setup", func(t *testing.T) {
Expand Down

0 comments on commit 0177cb4

Please sign in to comment.