diff options
Diffstat (limited to 'test/WriteFile.cxx')
-rw-r--r-- | test/WriteFile.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/WriteFile.cxx b/test/WriteFile.cxx index e762a9aa5..216d9b65d 100644 --- a/test/WriteFile.cxx +++ b/test/WriteFile.cxx @@ -43,10 +43,7 @@ Copy(OutputStream &dest, int src) if (nbytes == 0) return true; - if (!dest.Write(buffer, nbytes, error)) { - fprintf(stderr, "%s\n", error.GetMessage()); - return false; - } + dest.Write(buffer, nbytes); } } |