affaan-m/ECC · warning

WARNING: $*

Error message

WARNING: $*

What it means

Not a failure on its own: warn() at line 31 of skills/frontend-slides/scripts/export-pdf.sh is the script's non-fatal diagnostic printer — it echoes 'WARNING: <text>' in yellow to stdout. The deck-to-PDF export continues after it (set -euo pipefail aborts only on errors). In the current revision the helper has no active call sites (err() carries the real failures), so seeing this prefix means a non-fatal condition raised by a newer/patched revision of the script — the actionable content is the text after 'WARNING:'.

Source

Thrown at skills/frontend-slides/scripts/export-pdf.sh:31

#   2. Uses Playwright to screenshot each slide at 1920x1080
#   3. Combines all screenshots into a single PDF
#   4. Cleans up the server and temp files
#
# The PDF preserves colors, fonts, and layout - but not animations.
# Perfect for email attachments, printing, or embedding in documents.
set -euo pipefail

# --- Colors ---
RED='\033[0;31m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
YELLOW='\033[1;33m'
BOLD='\033[1m'
NC='\033[0m'

info()  { echo -e "${CYAN}INFO:${NC} $*"; }
ok()    { echo -e "${GREEN}OK:${NC} $*"; }
warn()  { echo -e "${YELLOW}WARNING:${NC} $*"; }
err()   { echo -e "${RED}ERROR:${NC} $*" >&2; }

# --- Parse flags ---

# Default resolution: 1920x1080 (full HD, ~1-2MB per slide)
# Compact resolution: 1280x720 (HD, ~50-70% smaller files)
VIEWPORT_W=1920
VIEWPORT_H=1080
COMPACT=false

POSITIONAL=()
for arg in "$@"; do
    case $arg in
        --compact)
            COMPACT=true
            VIEWPORT_W=1280
            VIEWPORT_H=720
            ;;

View on GitHub (pinned to d8409a4b08)

Solutions

  1. Read the text following 'WARNING:' — that is the actual condition; the helper itself is only formatting.
  2. Rely on the script's exit code, not stdout, to decide failure — warnings do not stop the export.
  3. Strip ANSI codes before grepping logs: sed 's/\x1b\[[0-9;]*m//g'.
Defensive patterns

Strategy: fallback

Prevention

When it happens

Trigger: Any warn '<text>' call-site added to export-pdf.sh firing under degraded-but-continuing conditions (e.g. fallback resolution, optional dependency missing); piping the script's stdout into logs or CI capture where the warning surfaces.

Common situations: Scanning CI logs and matching the WARNING prefix; ANSI color codes surviving or being stripped in log aggregation, making the line harder to grep.

Related errors


AI-assisted analysis of affaan-m/ECC@d8409a4b08 (2026-08-26). Data as JSON: /api/errors/2dfd70c3572dfd42. Report an issue: GitHub.