start doing wraps and subprojects

This commit is contained in:
Mars 2025-02-20 14:49:18 -05:00
parent ea13e2fc57
commit 24416c338c
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
11013 changed files with 3703981 additions and 25 deletions

View file

@ -44,7 +44,7 @@ namespace {
rfl::Result<WeatherOutput> result = rfl::json::read<WeatherOutput>(content);
if (!result)
return std::unexpected(result.error()->what());
return std::unexpected(result.error().what());
DEBUG_LOG("Successfully read from cache file.");
return *result;
@ -115,9 +115,11 @@ namespace {
DEBUG_LOG("API response size: {}", responseBuffer.size());
DEBUG_LOG("API response: {}", responseBuffer);
rfl::Result<WeatherOutput> output = rfl::json::read<WeatherOutput>(responseBuffer);
if (!output)
return std::unexpected(output.error()->what());
return std::unexpected(output.error().what());
return *output;
}