mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-23 20:40:08 +00:00
Update error messages
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user