diff options
author | Max Kellermann <max@duempel.org> | 2015-12-16 10:24:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-12-16 10:24:43 +0100 |
commit | e4a06da14e1184eacd00834aaf05c5457703a7eb (patch) | |
tree | 7d4d168bfd8475e9113b2d9d2e4b8b74c606f092 /test/WriteFile.cxx | |
parent | 36d6ead65cf507948744ee5d8615c8ef20e42f9d (diff) |
fs/io/OutputStream: use C++ exceptions in Write()
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); } } |