Compare commits

..

No commits in common. "cf8a8c145a6d36dc7bf6cc9d807b9520d10ef510" and "37547ec64071decd7ddb03e77acc427cd7543d9b" have entirely different histories.

2 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,7 @@ static Result<void> load_service(StringView path)
}
fprintf(g_init_log, "[init] skipping unknown entry name %s\n", parts[0].chars());
continue;
}
if (service.name.is_empty())

View File

@ -237,21 +237,25 @@ template <> class Result<void>
void value(SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, "Result::value() called on a Result that holds an error");
return;
}
void expect_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, reason);
return;
}
void release_value(SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, "Result::release_value() called on a Result that holds an error");
return;
}
void expect_release_value(const char* reason, SourceLocation caller = SourceLocation::current()) const
{
expect_at(has_value(), caller, reason);
return;
}
private: