Skip to content

Commit

Permalink
Include address in session provider error
Browse files Browse the repository at this point in the history
  • Loading branch information
gebn committed Oct 8, 2019
1 parent 989e544 commit 25f1948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/hex"
"errors"
"fmt"
"io"
"sync/atomic"
"time"
Expand Down Expand Up @@ -357,7 +358,7 @@ func (c *Collector) sendCommand(ctx context.Context, cmd ipmi.Command) error {
// failed
if err := c.newSession(ctx); err != nil {
// retry?
return err
return fmt.Errorf("could not obtain session for %v: %v", c.Target, err)
}
}

Expand Down

0 comments on commit 25f1948

Please sign in to comment.