summaryrefslogtreecommitdiff
path: root/test/WriteFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-12-16 10:24:43 +0100
committerMax Kellermann <max@duempel.org>2015-12-16 10:24:43 +0100
commite4a06da14e1184eacd00834aaf05c5457703a7eb (patch)
tree7d4d168bfd8475e9113b2d9d2e4b8b74c606f092 /test/WriteFile.cxx
parent36d6ead65cf507948744ee5d8615c8ef20e42f9d (diff)
fs/io/OutputStream: use C++ exceptions in Write()
Diffstat (limited to 'test/WriteFile.cxx')
-rw-r--r--test/WriteFile.cxx5
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);
}
}