mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
Kernel/Plan9FS: Propagate errors in Plan9FSMessage::append_data
This commit is contained in:
parent
0dd8066a79
commit
1f1e58ed75
3 changed files with 5 additions and 5 deletions
|
@ -38,11 +38,11 @@ Plan9FSMessage& Plan9FSMessage::operator<<(StringView string)
|
|||
return *this;
|
||||
}
|
||||
|
||||
void Plan9FSMessage::append_data(StringView data)
|
||||
ErrorOr<void> Plan9FSMessage::append_data(StringView data)
|
||||
{
|
||||
*this << static_cast<u32>(data.length());
|
||||
// FIXME: Handle append failure.
|
||||
(void)m_builder.append(data);
|
||||
TRY(m_builder.append(data));
|
||||
return {};
|
||||
}
|
||||
|
||||
Plan9FSMessage::Decoder& Plan9FSMessage::Decoder::operator>>(u8& number)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue