[SBI] Modified Exception handler on error (#2169)

This commit is contained in:
Sukchan Lee 2023-03-15 20:40:07 +09:00
parent 5f377d0126
commit 6b17bffdfd
646 changed files with 4920 additions and 735 deletions

View file

@ -135,6 +135,10 @@ OpenAPI_ellipsoid_arc_t *OpenAPI_ellipsoid_arc_parseFromJSON(cJSON *ellipsoid_ar
goto end;
}
shape_local_nonprim = OpenAPI_supported_gad_shapes_parseFromJSON(shape);
if (!shape_local_nonprim) {
ogs_error("OpenAPI_supported_gad_shapes_parseFromJSON failed [shape]");
goto end;
}
point = cJSON_GetObjectItemCaseSensitive(ellipsoid_arcJSON, "point");
if (!point) {
@ -142,6 +146,10 @@ OpenAPI_ellipsoid_arc_t *OpenAPI_ellipsoid_arc_parseFromJSON(cJSON *ellipsoid_ar
goto end;
}
point_local_nonprim = OpenAPI_geographical_coordinates_parseFromJSON(point);
if (!point_local_nonprim) {
ogs_error("OpenAPI_geographical_coordinates_parseFromJSON failed [point]");
goto end;
}
inner_radius = cJSON_GetObjectItemCaseSensitive(ellipsoid_arcJSON, "innerRadius");
if (!inner_radius) {