Skip to content

Commit 6ec3782

Browse files
committed
cleaner error message if TLS CryptoProvider fails
1 parent 04ae8b7 commit 6ec3782

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

crates/signer/src/service.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,14 @@ impl SigningService {
177177
break;
178178
}
179179
Err(e) => {
180+
if attempts >= 3 {
181+
return Err(eyre::eyre!(
182+
"Exceeded maximum attempts to install AWS-LC as default TLS provider: {e:?}"
183+
));
184+
}
180185
error!(
181186
"Failed to install AWS-LC as default TLS provider: {e:?}. Retrying..."
182187
);
183-
if attempts >= 3 {
184-
error!(
185-
"Exceeded maximum attempts to install AWS-LC as default TLS provider"
186-
);
187-
break;
188-
}
189188
attempts += 1;
190189
}
191190
}

0 commit comments

Comments
 (0)