mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
AK/ByteBuffer+Everywhere: Handle errors in ByteBuffer::slice()
This commit is contained in:
parent
c0486f93d4
commit
c10d48b72c
12 changed files with 45 additions and 34 deletions
|
@ -132,7 +132,8 @@ private:
|
|||
|
||||
if (!m_buffer.is_empty()) {
|
||||
auto size = OutputFileStream::write(m_buffer);
|
||||
m_buffer = m_buffer.slice(size, m_buffer.size() - size);
|
||||
// FIXME: Propagate errors.
|
||||
m_buffer = MUST(m_buffer.slice(size, m_buffer.size() - size));
|
||||
}
|
||||
|
||||
if (!m_buffer.is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue