File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,21 @@ int main(int argc, char** argv)
106
106
})gql" sv);
107
107
const auto startValidate = std::chrono::steady_clock::now ();
108
108
109
- service->validate (query);
109
+ if (!service->validate (query).empty ())
110
+ {
111
+ std::cerr << " Failed to validate the query!" << std::endl;
112
+ break ;
113
+ }
110
114
111
115
const auto startResolve = std::chrono::steady_clock::now ();
112
116
auto response = service->resolve ({ query }).get ();
113
117
const auto startToJson = std::chrono::steady_clock::now ();
114
118
115
- response::toJSON (std::move (response));
119
+ if (response::toJSON (std::move (response)).empty ())
120
+ {
121
+ std::cerr << " Failed to convert to JSON!" << std::endl;
122
+ break ;
123
+ }
116
124
117
125
const auto endToJson = std::chrono::steady_clock::now ();
118
126
You can’t perform that action at this time.
0 commit comments