MCPcopy Create free account
hub / github.com/AI45Lab/Code / classify_list_error

Function classify_list_error

core/src/workspace/s3.rs:1073–1084  ·  view source on GitHub ↗
(
    bucket: &str,
    prefix: &str,
    error: SdkError<ListObjectsV2Error>,
)

Source from the content-addressed store, hash-verified

1071}
1072
1073fn classify_list_error(
1074 bucket: &str,
1075 prefix: &str,
1076 error: SdkError<ListObjectsV2Error>,
1077) -> WorkspaceError {
1078 WorkspaceError::Backend(anyhow!(
1079 "Failed to list S3 prefix s3://{}/{}: {}",
1080 bucket,
1081 prefix,
1082 error
1083 ))
1084}
1085
1086/// Emit a structured `tracing` event for a single S3 API call.
1087///

Callers 2

list_dirMethod · 0.85
list_recursive_underMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected