Skip to content

Commit c7c8c5d

Browse files
committed
Fail hard if S3 cache access fails
1 parent 5fc8533 commit c7c8c5d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: cmd/root.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,10 @@ func getRemoteCache() leeway.RemoteCache {
178178
case "AWS":
179179
rc, err := leeway.NewS3RemoteCache(remoteCacheBucket, nil)
180180
if err != nil {
181-
log.Warnf("S3 cache initialization failed; remote cache will be disabled: %s", err)
182-
return leeway.NoRemoteCache{}
183-
} else {
184-
return rc
181+
log.Fatalf("cannot access remote S3 cache: %v", err)
185182
}
183+
184+
return rc
186185
default:
187186
return leeway.GSUtilRemoteCache{
188187
BucketName: remoteCacheBucket,

0 commit comments

Comments
 (0)