fs/io/OutputStream: use C++ exceptions in Write()

This commit is contained in:
Max Kellermann
2015-12-16 10:24:43 +01:00
parent 36d6ead65c
commit e4a06da14e
24 changed files with 241 additions and 333 deletions

View File

@@ -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);
}
}