codegen: Fix QUERY(TYPE, NAME, QUALIFIER) macro

This commit is contained in:
Leonid Stryzhevskyi 2023-01-24 23:28:20 +02:00
parent 0de4459c45
commit 594ec76c7f

View File

@ -172,7 +172,7 @@ if(!__param_validation_check_##NAME){ \
#define OATPP_MACRO_API_CONTROLLER_QUERY_2(TYPE, NAME, QUALIFIER) \
const auto& __param_str_val_##NAME = __request->getQueryParameter(QUALIFIER); \
if(!__param_str_val_##NAME) \
if(!__param_str_val_##NAME) { \
throw oatpp::web::protocol::http::HttpError(Status::CODE_400, \
oatpp::String("Missing QUERY parameter '") + QUALIFIER + "'"); \
} \