Update error messages

This commit is contained in:
topjohnwu
2022-02-11 00:01:42 -08:00
parent 8edf556c9e
commit 93eb277a88
2 changed files with 8 additions and 2 deletions

View File

@@ -163,7 +163,9 @@ bool chunk_out_stream::write(const void *_in, size_t len, bool final) {
void chunk_out_stream::finalize() {
if (buf_off) {
write_chunk(_buf, buf_off, true);
if (!write_chunk(_buf, buf_off, true)) {
LOGE("Error in finalize, file truncated\n");
}
delete[] _buf;
_buf = nullptr;
buf_off = 0;