Commit bf9328e2 authored by keks's avatar keks

remove panic that shouldn't have been there and publish 0.4.1

parent 545886a4
0.4.0: QmZCzaXTudYW8kxbXz2Up5v47Uvaww9L7WJPizPF8pADUp 0.4.1: QmPhtZyjPYddJ8yGPWreisp47H6iQjt3Lg8sZrzqMP5noy
...@@ -113,10 +113,7 @@ type chanResponseEmitter struct { ...@@ -113,10 +113,7 @@ type chanResponseEmitter struct {
} }
func (re *chanResponseEmitter) SetError(v interface{}, errType cmdkit.ErrorType) { func (re *chanResponseEmitter) SetError(v interface{}, errType cmdkit.ErrorType) {
err := re.Emit(&cmdkit.Error{Message: fmt.Sprint(v), Code: errType}) re.Emit(&cmdkit.Error{Message: fmt.Sprint(v), Code: errType})
if err != nil {
panic(err)
}
} }
func (re *chanResponseEmitter) SetLength(l uint64) { func (re *chanResponseEmitter) SetLength(l uint64) {
......
...@@ -34,6 +34,6 @@ ...@@ -34,6 +34,6 @@
"language": "go", "language": "go",
"license": "MIT", "license": "MIT",
"name": "go-ipfs-cmds", "name": "go-ipfs-cmds",
"version": "0.4.0" "version": "0.4.1"
} }
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