Skip to content

Commit 9adc6a3

Browse files
committed
fix: correct error message
1 parent d5b7d20 commit 9adc6a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

adapter/rest/src/response.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ pub fn value_to_http_response(value: Value) -> Response<Full<Bytes>> {
3535
let Some(headers_val) = fields.get("headers") else {
3636
return error_to_http_response(
3737
StatusCode::INTERNAL_SERVER_ERROR,
38-
"Flow result missing headers",
38+
"Flow result missing the field: headers",
3939
);
4040
};
4141
let Some(status_code_val) = fields.get("http_status_code") else {
4242
return error_to_http_response(
4343
StatusCode::INTERNAL_SERVER_ERROR,
44-
"Flow result missing status_code",
44+
"Flow result missing the field: http_status_code",
4545
);
4646
};
4747
let Some(payload_val) = fields.get("payload") else {
4848
return error_to_http_response(
4949
StatusCode::INTERNAL_SERVER_ERROR,
50-
"Flow result missing payload",
50+
"Flow result missing the field: payload",
5151
);
5252
};
5353

0 commit comments

Comments
 (0)