Skip to content

Commit

Permalink
chore: display AWS kensis error details (#12603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanqing Yang authored Oct 3, 2023
1 parent cd5ebe0 commit 25dac5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connector/src/source/kinesis/source/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ impl KinesisSplitReader {
.set_starting_sequence_number(starting_seq_num)
.set_timestamp(starting_timestamp)
.send()
.await?;
.await
.map_err(|e| anyhow!(DisplayErrorContext(e)))?;

if let Some(iter) = resp.shard_iterator() {
Ok(iter.to_owned())
Expand Down

0 comments on commit 25dac5b

Please sign in to comment.