summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--io/channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io/channel.c b/io/channel.c
index 4555021b62..e8b019dc36 100644
--- a/io/channel.c
+++ b/io/channel.c
@@ -202,8 +202,7 @@ int qio_channel_readv_full_all(QIOChannel *ioc,
int ret = qio_channel_readv_full_all_eof(ioc, iov, niov, fds, nfds, errp);
if (ret == 0) {
- error_prepend(errp,
- "Unexpected end-of-file before all data were read.");
+ error_setg(errp, "Unexpected end-of-file before all data were read");
return -1;
}
if (ret == 1) {