{"record":{"id":"2dfd70c3572dfd42","repo":"affaan-m/ECC","slug":"warning","errorCode":null,"errorMessage":"WARNING: $*","messagePattern":"WARNING: \\$\\*","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"skills/frontend-slides/scripts/export-pdf.sh","lineNumber":31,"sourceCode":"#   2. Uses Playwright to screenshot each slide at 1920x1080\n#   3. Combines all screenshots into a single PDF\n#   4. Cleans up the server and temp files\n#\n# The PDF preserves colors, fonts, and layout - but not animations.\n# Perfect for email attachments, printing, or embedding in documents.\nset -euo pipefail\n\n# --- Colors ---\nRED='\\033[0;31m'\nGREEN='\\033[0;32m'\nCYAN='\\033[0;36m'\nYELLOW='\\033[1;33m'\nBOLD='\\033[1m'\nNC='\\033[0m'\n\ninfo()  { echo -e \"${CYAN}INFO:${NC} $*\"; }\nok()    { echo -e \"${GREEN}OK:${NC} $*\"; }\nwarn()  { echo -e \"${YELLOW}WARNING:${NC} $*\"; }\nerr()   { echo -e \"${RED}ERROR:${NC} $*\" >&2; }\n\n# --- Parse flags ---\n\n# Default resolution: 1920x1080 (full HD, ~1-2MB per slide)\n# Compact resolution: 1280x720 (HD, ~50-70% smaller files)\nVIEWPORT_W=1920\nVIEWPORT_H=1080\nCOMPACT=false\n\nPOSITIONAL=()\nfor arg in \"$@\"; do\n    case $arg in\n        --compact)\n            COMPACT=true\n            VIEWPORT_W=1280\n            VIEWPORT_H=720\n            ;;","sourceCodeStart":13,"sourceCodeEnd":49,"githubUrl":"https://github.com/affaan-m/ECC/blob/d8409a4b0813771235555e32e3d8046a73988bfa/skills/frontend-slides/scripts/export-pdf.sh#L13-L49","documentation":"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:'.","triggerScenarios":"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.","commonSituations":"Scanning CI logs and matching the WARNING prefix; ANSI color codes surviving or being stripped in log aggregation, making the line harder to grep.","solutions":["Read the text following 'WARNING:' — that is the actual condition; the helper itself is only formatting.","Rely on the script's exit code, not stdout, to decide failure — warnings do not stop the export.","Strip ANSI codes before grepping logs: sed 's/\\x1b\\[[0-9;]*m//g'."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Judge export success by exit code, not by absence of 'WARNING:' lines.","Strip ANSI escape codes from captured output before grepping logs.","When extending export-pdf.sh, route fatal problems to err() and keep warn() for conditions the run can survive."],"tags":["shell","cli","logging","slides","pdf-export"],"backgroundTag":"shell-script-warning","analyzedSha":"d8409a4b0813771235555e32e3d8046a73988bfa","analyzedAt":"2026-08-26T12:15:34.022Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}