Skip to content

Commit d623d67

Browse files
committed
Panic if resolution fails
1 parent eb3dfa9 commit d623d67

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ async fn main() -> Result<()> {
345345
Box::pin(async move {
346346
resolve_secrets(config, aws_config, aws_credentials)
347347
.await
348-
.unwrap_or_else(|| {
349-
error!("Failed to resolve API key");
350-
String::new()
351-
})
348+
.expect("Failed to resolve API key")
352349
})
353350
})))
354351
};

0 commit comments

Comments
 (0)