mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-26 17:17:04 +01:00
Can't return inside multipart closure
This commit is contained in:
parent
d420992f8c
commit
9bf13b7872
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ fn post_attachment(uuid: String, data: Data, content_type: &ContentType, headers
|
|||
|
||||
let mut attachment = Attachment::new(file_name, cipher.uuid.clone(), name, size);
|
||||
attachment.key = attachment_key.clone();
|
||||
attachment.save(&conn)?;
|
||||
attachment.save(&conn).expect("Error saving attachment");
|
||||
}
|
||||
_ => error!("Invalid multipart name"),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue