mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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
|
|
@ -244,7 +244,6 @@ OpenAPI_events_subsc_req_data_t *OpenAPI_events_subsc_req_data_parseFromJSON(cJS
|
|||
OpenAPI_af_event_subscription_t *eventsItem = OpenAPI_af_event_subscription_parseFromJSON(events_local);
|
||||
if (!eventsItem) {
|
||||
ogs_error("No eventsItem");
|
||||
OpenAPI_list_free(eventsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(eventsList, eventsItem);
|
||||
|
|
@ -280,6 +279,10 @@ OpenAPI_events_subsc_req_data_t *OpenAPI_events_subsc_req_data_parseFromJSON(cJS
|
|||
qos_mon = cJSON_GetObjectItemCaseSensitive(events_subsc_req_dataJSON, "qosMon");
|
||||
if (qos_mon) {
|
||||
qos_mon_local_nonprim = OpenAPI_qos_monitoring_information_parseFromJSON(qos_mon);
|
||||
if (!qos_mon_local_nonprim) {
|
||||
ogs_error("OpenAPI_qos_monitoring_information_parseFromJSON failed [qos_mon]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
req_anis = cJSON_GetObjectItemCaseSensitive(events_subsc_req_dataJSON, "reqAnis");
|
||||
|
|
@ -304,6 +307,10 @@ OpenAPI_events_subsc_req_data_t *OpenAPI_events_subsc_req_data_parseFromJSON(cJS
|
|||
usg_thres = cJSON_GetObjectItemCaseSensitive(events_subsc_req_dataJSON, "usgThres");
|
||||
if (usg_thres) {
|
||||
usg_thres_local_nonprim = OpenAPI_usage_threshold_parseFromJSON(usg_thres);
|
||||
if (!usg_thres_local_nonprim) {
|
||||
ogs_error("OpenAPI_usage_threshold_parseFromJSON failed [usg_thres]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
notif_corre_id = cJSON_GetObjectItemCaseSensitive(events_subsc_req_dataJSON, "notifCorreId");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue