Commit e6ad4813 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

dont crash when redirecting stderr

parent 13ba6df5
......@@ -37,7 +37,7 @@ func NewBar(message string, maxValue, initialValue int64) *Bar {
func (b *Bar) String() string {
termWidth, _, err := term.GetSize(int(os.Stderr.Fd()))
if err != nil {
panic(err)
termWidth = 80
}
var pre, mid, suf strings.Builder
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment