vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 9bf13b78723a4177281fd8a114856d6d680aff1b
parent d420992f8cf253c7cb74bcaed3c774ad645b1900
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue, 15 Jan 2019 22:00:41 +0100

Can't return inside multipart closure

Diffstat:
Msrc/api/core/ciphers.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -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"), }