We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JsonCursor
1 parent 9465448 commit 7ff222bCopy full SHA for 7ff222b
src/cursor.rs
@@ -174,7 +174,9 @@ impl<T> JsonCursor<T> {
174
Ok(JsonRow::Row(value)) => ControlFlow::Yield(value),
175
Ok(JsonRow::Progress { .. }) => ControlFlow::Skip,
176
// TODO: another reason?
177
- Err(err) => ControlFlow::Err(Error::BadResponse(err.to_string())),
+ Err(err) => ControlFlow::Err(Error::BadResponse(format!(
178
+ "{err} in {line:?}"
179
+ ))),
180
}
181
} else {
182
ControlFlow::Err(Error::NotEnoughData)
0 commit comments