mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 23:37:22 +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
|
|
@ -105,6 +105,10 @@ OpenAPI_exception_t *OpenAPI_exception_parseFromJSON(cJSON *exceptionJSON)
|
|||
goto end;
|
||||
}
|
||||
excep_id_local_nonprim = OpenAPI_exception_id_parseFromJSON(excep_id);
|
||||
if (!excep_id_local_nonprim) {
|
||||
ogs_error("OpenAPI_exception_id_parseFromJSON failed [excep_id]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
excep_level = cJSON_GetObjectItemCaseSensitive(exceptionJSON, "excepLevel");
|
||||
if (excep_level) {
|
||||
|
|
@ -117,6 +121,10 @@ OpenAPI_exception_t *OpenAPI_exception_parseFromJSON(cJSON *exceptionJSON)
|
|||
excep_trend = cJSON_GetObjectItemCaseSensitive(exceptionJSON, "excepTrend");
|
||||
if (excep_trend) {
|
||||
excep_trend_local_nonprim = OpenAPI_exception_trend_parseFromJSON(excep_trend);
|
||||
if (!excep_trend_local_nonprim) {
|
||||
ogs_error("OpenAPI_exception_trend_parseFromJSON failed [excep_trend]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
exception_local_var = OpenAPI_exception_create (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue