Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
e6ad4813
Commit
e6ad4813
authored
Nov 19, 2023
by
Jeffrey Morgan
Browse files
dont crash when redirecting stderr
parent
13ba6df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
progress/bar.go
progress/bar.go
+1
-1
No files found.
progress/bar.go
View file @
e6ad4813
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment