Can't return inside multipart closure

This commit is contained in:
Daniel García 2019-01-15 22:00:41 +01:00
parent d420992f8c
commit 9bf13b7872
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A

View File

@ -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"),
}