From 8d6ee20a7c3bf62b5a619d28f3d6c43cd0dbac98 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Sat, 5 May 2018 22:34:13 +0400 Subject: [PATCH] Fix error return when stream send failed --- rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.go b/rpc.go index 447e853..3f02b22 100644 --- a/rpc.go +++ b/rpc.go @@ -356,7 +356,7 @@ func (l *Libvirt) requestStream(proc uint32, program uint32, payload []byte, out if outStream != nil { err = <-outStreamErr if err != nil { - return response{}, nil + return response{}, err } }