mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
[SBI] Modified Exception handler on error (#2169)
This commit is contained in:
parent
5f377d0126
commit
6b17bffdfd
646 changed files with 4920 additions and 735 deletions
|
|
@ -234,21 +234,37 @@ OpenAPI_gera_location_t *OpenAPI_gera_location_parseFromJSON(cJSON *gera_locatio
|
|||
cgi = cJSON_GetObjectItemCaseSensitive(gera_locationJSON, "cgi");
|
||||
if (cgi) {
|
||||
cgi_local_nonprim = OpenAPI_cell_global_id_parseFromJSON(cgi);
|
||||
if (!cgi_local_nonprim) {
|
||||
ogs_error("OpenAPI_cell_global_id_parseFromJSON failed [cgi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
rai = cJSON_GetObjectItemCaseSensitive(gera_locationJSON, "rai");
|
||||
if (rai) {
|
||||
rai_local_nonprim = OpenAPI_routing_area_id_parseFromJSON(rai);
|
||||
if (!rai_local_nonprim) {
|
||||
ogs_error("OpenAPI_routing_area_id_parseFromJSON failed [rai]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
sai = cJSON_GetObjectItemCaseSensitive(gera_locationJSON, "sai");
|
||||
if (sai) {
|
||||
sai_local_nonprim = OpenAPI_service_area_id_parseFromJSON(sai);
|
||||
if (!sai_local_nonprim) {
|
||||
ogs_error("OpenAPI_service_area_id_parseFromJSON failed [sai]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
lai = cJSON_GetObjectItemCaseSensitive(gera_locationJSON, "lai");
|
||||
if (lai) {
|
||||
lai_local_nonprim = OpenAPI_location_area_id_parseFromJSON(lai);
|
||||
if (!lai_local_nonprim) {
|
||||
ogs_error("OpenAPI_location_area_id_parseFromJSON failed [lai]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
vlr_number = cJSON_GetObjectItemCaseSensitive(gera_locationJSON, "vlrNumber");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue