We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f4fbf commit e59ea32Copy full SHA for e59ea32
server/src/files.rs
@@ -54,7 +54,13 @@ pub async fn s3_upload_object(
54
file_path: &PathBuf,
55
) -> AtomicServerResult<()> {
56
let mut builder = S3::default();
57
- builder.bucket(appstate.config.opts.s3_bucket.as_ref().unwrap().as_str());
+ let bucket = appstate
58
+ .config
59
+ .opts
60
+ .s3_bucket
61
+ .as_ref()
62
+ .ok_or("uploading to s3 but no s3 bucket configured")?;
63
+ builder.bucket(bucket);
64
appstate
65
.config
66
.opts
0 commit comments