start doing wraps and subprojects
This commit is contained in:
parent
ea13e2fc57
commit
24416c338c
11013 changed files with 3703981 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue