Skip to content

Commit b6b25c5

Browse files
KSDaemonovr
andauthored
Apply suggestions from code review
Co-authored-by: Dmitry Patsura <[email protected]>
1 parent c19fec4 commit b6b25c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/cubeorchestrator/src/query_message_parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub enum ParseError {
1313
EmptyResultSet,
1414
NullRow,
1515
ColumnNameNotDefined,
16-
FlatBufferError,
16+
FlatBufferError(String),
1717
ErrorMessage(String),
1818
}
1919

@@ -53,7 +53,7 @@ impl QueryResult {
5353
opts.max_tables = 10_000_000; // Support up to 10M tables
5454

5555
let http_message = root_as_http_message_with_opts(&opts, msg_data)
56-
.map_err(|_| ParseError::FlatBufferError)?;
56+
.map_err(|err| ParseError::FlatBufferError(err.to_string()))
5757

5858
match http_message.command_type() {
5959
HttpCommand::HttpError => {

0 commit comments

Comments
 (0)