mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +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:
@@ -86,7 +86,10 @@ ProcFSExposedComponent::ProcFSExposedComponent()
|
||||
ProcFSExposedComponent::ProcFSExposedComponent(StringView name)
|
||||
: m_component_index(s_allocate_global_inode_index())
|
||||
{
|
||||
m_name = KString::try_create(name);
|
||||
auto name_or_error = KString::try_create(name);
|
||||
if (name_or_error.is_error())
|
||||
TODO();
|
||||
m_name = name_or_error.release_value();
|
||||
}
|
||||
|
||||
ProcFSExposedDirectory::ProcFSExposedDirectory(StringView name)
|
||||
|
||||
Reference in New Issue
Block a user