Skip to content

Commit 0da8c52

Browse files
committed
generator api-index debugging
1 parent 675f116 commit 0da8c52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generator/internal/scaffold_generator.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@ std::string SiteRoot(
101101
}
102102

103103
nlohmann::json LoadApiIndex(std::string const& googleapis_path) {
104+
std::cout << __func__ << ": googleapis_path=" << googleapis_path << "\n";
104105
auto const api_index_path = googleapis_path + "/" + kApiIndexFilename;
105106
auto status = google::cloud::internal::status(api_index_path);
106107
if (!exists(status)) {
107108
GCP_LOG(WARNING) << "Cannot find API index file (" << api_index_path << ")";
108-
return {};
109+
return nlohmann::json::value_t();
109110
}
110111
std::ifstream is(api_index_path);
111112
auto index = nlohmann::json::parse(is, nullptr, false);

0 commit comments

Comments
 (0)