Skip to content

Commit

Permalink
Corrected error message string.
Browse files Browse the repository at this point in the history
  • Loading branch information
maldrake committed Jan 12, 2022
1 parent ff4b260 commit 0832ce5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gremlin-client/src/structure/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ impl TryFrom<GKey> for String {
if let GKey::String(s) = k {
Ok(s)
} else {
Err(GremlinError::Cast(String::from(
"Cannot cast from this GKey to String",
)))
Err(GremlinError::Cast(String::from(format!(
"Cannot cast from {:?} to String",
k
))))
}
}
}
Expand Down

0 comments on commit 0832ce5

Please sign in to comment.