aboutsummaryrefslogtreecommitdiff
path: root/worker
diff options
context:
space:
mode:
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