Skip to content

Commit 7e1885f

Browse files
committed
lint
1 parent a0845a0 commit 7e1885f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/capabilities/errors/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func NewPrivateUserError(err error, errorCode ErrorCode) Error {
125125
}
126126

127127
func (e capabilityError) Error() string {
128-
return fmt.Sprintf("[%d]%s:", e.errorCode, e.errorCode.String()) + " " + e.err.Error()
128+
return fmt.Sprintf("[%d]%s: %s", e.errorCode, e.errorCode.String(), e.err.Error())
129129
}
130130

131131
func (e capabilityError) Origin() Origin {

pkg/loop/internal/core/services/capability/capabilities_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ func Test_Capabilities(t *testing.T) {
546546
require.Equal(t, caperrors.OriginSystem, capErr.Origin())
547547
})
548548

549-
t.Run("fetching an action capability, and executing it with private user error", func(t *testing.T) {
549+
t.Run("fetching an action capability, and executing it with private system error", func(t *testing.T) {
550550
ma := mustMockExecutable(t, capabilities.CapabilityTypeAction)
551551
c, _, _, err := newCapabilityPlugin(t, ma)
552552
require.NoError(t, err)

0 commit comments

Comments
 (0)