aboutsummaryrefslogtreecommitdiff
path: root/worker
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-07-13 11:21:17 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-13 11:21:17 -0400
commitdba16157de96cab2736ca8fbddc1a19fa3667a3f (patch)
treead8d287b08a0abfd5411beefa57107ad8e363fed /worker
parent5b2336d0d77615cc2326983b6c5109b6e760ad31 (diff)
Fix missing format fields in maildir/container.go
Diffstat (limited to 'worker')
-rw-r--r--worker/maildir/container.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/maildir/container.go b/worker/maildir/container.go
index aa14575..f015181 100644
--- a/worker/maildir/container.go
+++ b/worker/maildir/container.go
@@ -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