And another one.

This commit is contained in:
Josh Rickmar 2013-08-21 15:28:15 -04:00
parent 4f4807a003
commit eec4c64ac6

View file

@ -195,7 +195,7 @@ func ReplyError(reply chan []byte, id interface{}, e *btcjson.Error) {
Error: e,
Id: &id,
}
if mr, err := json.Marshal(r); err != nil {
if mr, err := json.Marshal(r); err == nil {
reply <- mr
}
}