Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
288baf74
Commit
288baf74
authored
Jul 04, 2017
by
keks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
legacy: don't print error on canceled context
parent
eb35c1c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
legacy.go
legacy.go
+2
-1
No files found.
legacy.go
View file @
288baf74
package
cmds
package
cmds
import
(
import
(
"context"
"fmt"
"fmt"
"io"
"io"
"os"
"os"
...
@@ -59,7 +60,7 @@ func (rw *responseWrapper) Output() interface{} {
...
@@ -59,7 +60,7 @@ func (rw *responseWrapper) Output() interface{} {
for
{
for
{
v
,
err
:=
rw
.
Next
()
v
,
err
:=
rw
.
Next
()
if
err
==
io
.
EOF
{
if
err
==
io
.
EOF
||
err
==
context
.
Canceled
{
return
return
}
}
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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