Skip to content

Commit

Permalink
add message fallback (#55)
Browse files Browse the repository at this point in the history
* add message fallback

* accept review

* accept review
  • Loading branch information
septs authored Mar 17, 2024
1 parent 4329149 commit 780d792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions euicc/es9p.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ static int es9p_trans_json(struct euicc_ctx *ctx, const char *smdp, const char *
{
strncpy(ctx->http.status.message, cJSON_GetObjectItem(statusCodeData, "message")->valuestring, sizeof(ctx->http.status.message));
}
else
{
snprintf(ctx->http.status.message, sizeof(ctx->http.status.message), "subject-code: %s, reason-code: %s", ctx->http.status.subjectCode, ctx->http.status.reasonCode);
}
}

for (int i = 0; okey[i] != NULL; i++)
Expand Down

0 comments on commit 780d792

Please sign in to comment.