This commit is contained in:
Mars 2025-02-19 21:49:57 -05:00
parent e7372afa2f
commit ea13e2fc57
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
9 changed files with 57 additions and 32 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;
@ -117,7 +117,7 @@ namespace {
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;
}