Skip to content

Commit

Permalink
Do not attempt to log errors in Run(), instead just return. They shou…
Browse files Browse the repository at this point in the history
…ld be logged in main(). Fixes #155.
  • Loading branch information
bojand committed Jan 10, 2020
1 parent b338ba1 commit 9649eb0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ func Run(call, host string, options ...Option) (*Report, error) {
c, err := newConfig(call, host, options...)

if err != nil {
if c.hasLog {
c.log.Errorf("Error creating run config: %+v", err.Error())
}

return nil, err
}

Expand All @@ -35,10 +31,6 @@ func Run(call, host string, options ...Option) (*Report, error) {
reqr, err := newRequester(c)

if err != nil {
if c.hasLog {
c.log.Errorf("Error creating new requestor: %+v", err.Error())
}

return nil, err
}

Expand Down

0 comments on commit 9649eb0

Please sign in to comment.