Fix format string

This commit is contained in:
Simon Ser 2019-12-03 14:48:43 +01:00
parent 96646c8324
commit 2d3cce64da
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -19,7 +19,7 @@ func (s *Server) connectIMAP() (*imapclient.Client, error) {
if s.imap.tls {
c, err = imapclient.DialTLS(s.imap.host, nil)
if err != nil {
return nil, fmt.Errorf("failed to connect to IMAPS server: ^v", err)
return nil, fmt.Errorf("failed to connect to IMAPS server: %v", err)
}
} else {
c, err = imapclient.Dial(s.imap.host)