Skip to content

Commit f362874

Browse files
authored
Merge pull request #41 from rubytogether/segiddins/include-request-struct-in-error-messages
Include request struct in error messages
2 parents e85c97b + 163ca26 commit f362874

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ where
278278
|| {
279279
Err(Error::new(
280280
ErrorKind::InvalidData,
281-
format!("unknown full name: {full_name:?}"),
281+
format!("unknown full name: {full_name:?} in {:?}", clickhouse),
282282
))
283283
},
284284
Ok,
@@ -297,7 +297,10 @@ where
297297
_ => {
298298
return Err(Error::new(
299299
ErrorKind::InvalidData,
300-
"missing gem, version, or platform from request",
300+
format!(
301+
"missing gem, version, or platform from request in {:?}",
302+
clickhouse,
303+
),
301304
));
302305
}
303306
}

0 commit comments

Comments
 (0)