Fix missing format fields in maildir/container.go

This commit is contained in:
Drew DeVault 2019-07-13 11:21:17 -04:00
parent 5b2336d0d7
commit dba16157de
1 changed files with 2 additions and 2 deletions

View File

@ -129,12 +129,12 @@ func (c *Container) copyMessage(
del, err := dest.NewDelivery()
if err != nil {
return fmt.Errorf("could not initialize delivery: %v")
return fmt.Errorf("could not initialize delivery: %v", err)
}
defer del.Close()
if _, err = io.Copy(del, f); err != nil {
return fmt.Errorf("could not copy message to delivery: %v")
return fmt.Errorf("could not copy message to delivery: %v", err)
}
// TODO: preserve flags