[minor] Add debug logging if aws cli command fails

The motivation is to help debugging FLINK-15772.
上级 eb12141c
......@@ -71,7 +71,9 @@ function aws_cli() {
if [[ $S3_ENDPOINT ]]; then
endpoint="--endpoint-url $S3_ENDPOINT"
fi
docker exec "$AWSCLI_CONTAINER_ID" aws $endpoint "$@"
if ! docker exec "$AWSCLI_CONTAINER_ID" aws $endpoint "$@"; then
echo "Error executing aws command: $@";
fi
}
###################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册