Geary.RFC822: Ensure various data constructors throw errors
Rather than just silently ignoring error conditions, throw RFC822 errors instead.
This commit is contained in:
parent
97e0093e29
commit
e0c1fb8a80
10 changed files with 160 additions and 144 deletions
|
|
@ -118,7 +118,8 @@ class Integration.Smtp.ClientSession : TestCase {
|
|||
}
|
||||
|
||||
private async Geary.RFC822.Message new_message(Geary.RFC822.MailboxAddress from,
|
||||
Geary.RFC822.MailboxAddress to) {
|
||||
Geary.RFC822.MailboxAddress to)
|
||||
throws Geary.RFC822Error {
|
||||
Geary.ComposedEmail composed = new Geary.ComposedEmail(
|
||||
new GLib.DateTime.now_local(),
|
||||
new Geary.RFC822.MailboxAddresses.single(from)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue