Skip to content

Commit 3e4e655

Browse files
walacchmanchester
authored andcommitted
GCS: report error when we fail to get access token
1 parent a3d3f63 commit 3e4e655

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/cache/gcs.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,15 @@ impl Bucket {
6262
let client = self.client.clone();
6363

6464
let creds_opt_future = if let &Some(ref cred_provider) = cred_provider {
65-
future::Either::A(cred_provider.credentials(&self.client).map(Some))
65+
future::Either::A(
66+
cred_provider
67+
.credentials(&self.client)
68+
.map_err(|err| {
69+
warn!("Error getting credentials: {:?}", err);
70+
err
71+
})
72+
.map(Some),
73+
)
6674
} else {
6775
future::Either::B(future::ok(None))
6876
};

0 commit comments

Comments
 (0)