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
Commits
d4add99a
Unverified
Commit
d4add99a
authored
Nov 30, 2017
by
Whyrusleeping
Committed by
GitHub
Nov 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4437 from ipfs/fix/add-abort-panic
Fix/add abort panic
parents
a81025f8
a3a31793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cmd/ipfs/main.go
cmd/ipfs/main.go
+5
-2
No files found.
cmd/ipfs/main.go
View file @
d4add99a
...
...
@@ -364,9 +364,12 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command, cmd
}
go
func
()
{
err
=
cmds
.
Copy
(
re
,
res
)
err
:
=
cmds
.
Copy
(
re
,
res
)
if
err
!=
nil
{
re
.
SetError
(
err
,
cmdkit
.
ErrNormal
|
cmdkit
.
ErrFatal
)
err
=
re
.
Emit
(
cmdkit
.
Error
{
err
.
Error
(),
cmdkit
.
ErrNormal
|
cmdkit
.
ErrFatal
})
if
err
!=
nil
{
log
.
Error
(
err
)
}
}
}()
}
else
{
...
...
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