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
|
|
@ -166,6 +166,10 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_parseFromJSON(cJSON *steering_mod
|
|||
standby = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "standby");
|
||||
if (standby) {
|
||||
standby_local_nonprim = OpenAPI_access_type_rm_parseFromJSON(standby);
|
||||
if (!standby_local_nonprim) {
|
||||
ogs_error("OpenAPI_access_type_rm_parseFromJSON failed [standby]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
_3g_load = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "3gLoad");
|
||||
|
|
@ -188,6 +192,10 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_parseFromJSON(cJSON *steering_mod
|
|||
thres_value = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "thresValue");
|
||||
if (thres_value) {
|
||||
thres_value_local_nonprim = OpenAPI_threshold_value_parseFromJSON(thres_value);
|
||||
if (!thres_value_local_nonprim) {
|
||||
ogs_error("OpenAPI_threshold_value_parseFromJSON failed [thres_value]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
steer_mode_ind = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "steerModeInd");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue