Skip to content

Commit

Permalink
add more info to errors (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Rick Bijkerk <[email protected]>
  • Loading branch information
rickbijkerk and Rick Bijkerk authored Apr 15, 2024
1 parent c8e3fd6 commit 959c5e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/business/persisted_operations/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package persisted_operations // nolint:revive
import (
"context"
"errors"
"fmt"
"log/slog"
)

Expand Down Expand Up @@ -31,7 +32,7 @@ func determineLoader(cfg Config, log *slog.Logger) (RemoteLoader, error) {
if cfg.Remote.GcpBucket != "" {
loader, err := NewGcpStorageLoader(context.Background(), cfg.Remote.GcpBucket, cfg.Store, log)
if err != nil {
return nil, errors.New("unable to instantiate GcpBucketLoader")
return nil, fmt.Errorf("unable to instantiate GcpBucketLoader err: %w", err)
}
return loader, nil
}
Expand Down

0 comments on commit 959c5e1

Please sign in to comment.