This commit is contained in:
Mars 2025-02-19 18:31:40 -05:00
parent 9b155fd8db
commit e7372afa2f
5 changed files with 40 additions and 23 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;
}