summary refs log tree commit diff stats
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
parent5b2336d0d77615cc2326983b6c5109b6e760ad31 (diff)
downloadaerc-dba16157de96cab2736ca8fbddc1a19fa3667a3f.tar.gz
Fix missing format fields in maildir/container.go
-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
a id='n132' href='#n132'>132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230