Skip to content

Commit 25ce0e2

Browse files
authored
show error message on failure (#2121)
* show error message on failure * only show errors
1 parent 32b07da commit 25ce0e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/s3-cache-download.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ echo "Ensuring cache directory exists: $CACHE_DIR"
3030

3131
# Download cache from S3
3232
echo "Restoring cache from S3 bucket: $BUCKET (region: $REGION)"
33-
if aws s3 sync "s3://$BUCKET" "$CACHE_DIR" --region "$REGION" --quiet 2>/dev/null; then
33+
if aws s3 sync "s3://$BUCKET" "$CACHE_DIR" --region "$REGION" --only-show-errors; then
3434
CACHED_FILES=$(find "$CACHE_DIR" -type f 2>/dev/null | wc -l)
3535
echo "Cache restored successfully ($CACHED_FILES files)"
3636

scripts/s3-cache-upload.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fi
5656
echo "Saving cache to S3 bucket: $BUCKET (region: $REGION)"
5757
echo "Uploading $ARTIFACT_COUNT files"
5858

59-
if aws s3 sync "$CACHE_DIR" "s3://$BUCKET" --region "$REGION" --quiet 2>/dev/null; then
59+
if aws s3 sync "$CACHE_DIR" "s3://$BUCKET" --region "$REGION" --only-show-errors; then
6060
echo "Cache saved successfully"
6161
else
6262
echo "Warning: Failed to save cache (this won't fail the build)"

0 commit comments

Comments
 (0)