Treat only StatusError as error, not StatusContinue
This commit is contained in:
		
							
								
								
									
										2
									
								
								rpc.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								rpc.go
									
									
									
									
									
								
							| @@ -365,7 +365,7 @@ func (l *Libvirt) sendPacket(serial uint32, proc uint32, program uint32, payload | ||||
|  | ||||
| func (l *Libvirt) getResponse(c chan response) (response, error) { | ||||
| 	resp := <-c | ||||
| 	if resp.Status != StatusOK { | ||||
| 	if resp.Status == StatusError { | ||||
| 		return resp, decodeError(resp.Payload) | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user