diff options
author | Robin Jarry <robin@jarry.cc> | 2022-08-04 22:48:14 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-04 22:52:40 +0200 |
commit | 6b1afc3ae3d8c4b9fbb46f416edba96b8b4a216f (patch) | |
tree | db88216457773b037d9d920438a32835d490c570 /worker/lib | |
parent | 1b4b22531887f123a0c631fbeefd61067ba8558b (diff) | |
download | aerc-6b1afc3ae3d8c4b9fbb46f416edba96b8b4a216f.tar.gz |
tests: fix errors after lint series
Fix the following test failures:
FAIL: TestMessageInfoHandledError (0.00s)
parse_test.go:53: could not parse envelope: date parsing failed:
unrecognized date format:
FAIL: TestReader (0.07s)
gpg_test.go:27: using GNUPGHOME = /tmp/TestReader2384941142/001
reader_test.go:108: Test case: Invalid Signature
reader_test.go:112: gpg.Read() = gpgmail: failed to read PGP
message: gpg: failed to run verification: exit status 1
Fixes: 5ca6022d007b ("lint: ensure errors are at least logged (errcheck)")
Fixes: 70bfcfef4257 ("lint: work nicely with wrapped errors (errorlint)")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'worker/lib')
-rw-r--r-- | worker/lib/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/lib/parse.go b/worker/lib/parse.go index ad5e0a8b..7f6eb20f 100644 --- a/worker/lib/parse.go +++ b/worker/lib/parse.go @@ -167,7 +167,7 @@ func parseEnvelope(h *mail.Header) (*models.Envelope, error) { if err != nil { // still return a valid struct plus a sentinel date parsing error // if only the date parsing failed - err = fmt.Errorf("%v: %w", DateParseError, err) + err = fmt.Errorf("%w: %v", DateParseError, err) } return &models.Envelope{ Date: date, |