Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: tabVersion <[email protected]>
  • Loading branch information
tabVersion committed Jul 17, 2024
1 parent bffee42 commit 0e85bf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connector/src/source/kinesis/enumerator/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use anyhow::anyhow;
use async_trait::async_trait;
use aws_sdk_kinesis::types::Shard;
use aws_sdk_kinesis::Client as kinesis_client;
Expand Down Expand Up @@ -69,7 +70,7 @@ impl SplitEnumerator for KinesisSplitEnumerator {
next_token = None;
continue;
}
bail!("Kinesis ListShards service error: {}", e.to_report_string());
return Err(anyhow!(e).context("failed to list kinesis shards").into());
}
};
match list_shard_output.shards {
Expand Down

0 comments on commit 0e85bf0

Please sign in to comment.