mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
Kernel: Make KString factories return KResultOr + use TRY() everywhere
There are a number of places that don't have an error propagation path right now, so I've added FIXME's about that.
This commit is contained in:
@@ -21,7 +21,7 @@ static size_t allocate_inode_index()
|
||||
}
|
||||
|
||||
SysFSComponent::SysFSComponent(StringView name)
|
||||
: m_name(KString::try_create(name).release_nonnull())
|
||||
: m_name(KString::try_create(name).release_value()) // FIXME: Handle KString allocation failure.
|
||||
, m_component_index(allocate_inode_index())
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user