Skip to content

Commit

Permalink
refactor: print timeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed May 22, 2024
1 parent 4f1bf27 commit f8f869d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ All long form (--) flags can be toggled with the dig-standard +[no]flag notation

select {
case <-time.After(opts.Timeout):
return fmt.Errorf("timeout")
return fmt.Errorf("timeout after %s", opts.Timeout)
case err := <-errChan:
return err
}
Expand Down

0 comments on commit f8f869d

Please sign in to comment.