From 9617bd6c856e8f61d28a637f416e6bc982d54c7a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 26 Aug 2019 21:17:11 +0200 Subject: [PATCH] test/run_filter: fix error message --- test/run_filter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run_filter.cxx b/test/run_filter.cxx index 5579888cf..98aff564f 100644 --- a/test/run_filter.cxx +++ b/test/run_filter.cxx @@ -102,7 +102,7 @@ FullWrite(FileDescriptor fd, const void *_buffer, size_t size) while (size > 0) { size_t nbytes = WriteOrThrow(fd, buffer, size); if (nbytes == 0) - throw std::runtime_error("Premature end of input"); + throw std::runtime_error("Write failed"); buffer += nbytes; size -= nbytes;