Can't return inside multipart closure

pull/343/head
Daniel García 6 years ago
parent d420992f8c
commit 9bf13b7872
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A

@ -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…
Cancel
Save