Skip to content

Commit

Permalink
use error pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Sep 12, 2024
1 parent f9a0170 commit a45f869
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ignite/pkg/sentry/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/getsentry/sentry-go"

"github.com/ignite/cli/v29/ignite/pkg/errors"
"github.com/ignite/cli/v29/ignite/version"
)

Expand All @@ -19,7 +20,7 @@ func InitSentry(ctx context.Context) (deferMe func(), err error) {

igniteInfo, err := version.GetInfo(ctx)
if err != nil {
return nil, fmt.Errorf("failed to init sentry: %w", err)
return nil, errors.Errorf("failed to init sentry: %w", err)
}

if err := sentry.Init(sentry.ClientOptions{
Expand All @@ -29,7 +30,7 @@ func InitSentry(ctx context.Context) (deferMe func(), err error) {
Release: fmt.Sprintf("ignite@%s", igniteInfo.CLIVersion),
SampleRate: 1.0, // get all events
}); err != nil {
return nil, fmt.Errorf("failed to init sentry: %w", err)
return nil, errors.Errorf("failed to init sentry: %w", err)
}

return func() {
Expand Down

0 comments on commit a45f869

Please sign in to comment.