Skip to content

Commit

Permalink
Default message to empty string for ResponseStatus (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
criminosis committed Apr 19, 2024
1 parent c3c9a0a commit 2eb9364
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gremlin-client/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ pub struct ResponseResult {
#[derive(Debug, Deserialize)]
pub struct ReponseStatus {
pub code: i16,
//Sometimes the message is omitted, default to empty string rather than panic
#[serde(default)]
pub message: String,
}

Expand Down

0 comments on commit 2eb9364

Please sign in to comment.