Skip to content

Commit

Permalink
fix: Don't report io.EOF errors via gluon reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshoulahan committed Nov 16, 2022
1 parent 1d8260c commit cee1c02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/session/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ package session

import (
"context"
"errors"
"fmt"
"io"

"github.com/bradenaw/juniper/xslices"
"golang.org/x/exp/maps"

Expand All @@ -26,7 +29,7 @@ func (s *Session) startCommandReader(ctx context.Context, del string) <-chan com

for {
tag, cmd, err := s.readCommand(del)
if err != nil {
if err != nil && !errors.Is(err, io.EOF) {
reporter.MessageWithContext(ctx,
"Failed to parse imap command",
reporter.Context{"error": err},
Expand Down

0 comments on commit cee1c02

Please sign in to comment.