fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: improve example error logs

Lubos d12e1991 b677f893

+17 -2
+17 -2
scripts/examples-generate.sh
··· 76 76 echo "✅ $name succeeded" 77 77 else 78 78 name=$(cat "$tmpdir/$pid.name" 2>/dev/null || echo "$pid") 79 - log=$(cat "$tmpdir/$pid.log" 2>/dev/null || echo "(no log)") 80 - echo "❌ $name failed — see log: $tmpdir/$pid.log" 79 + # Read the metadata file which contains the path to the real log 80 + logpath=$(cat "$tmpdir/$pid.log" 2>/dev/null || echo "") 81 + if [ -n "$logpath" ] && [ -f "$logpath" ]; then 82 + echo "❌ $name failed — showing log excerpt ($logpath):" 83 + echo "---- log excerpt (last 200 lines) ----" 84 + tail -n 200 "$logpath" || true 85 + echo "---- possible error lines (case-insensitive match: error|exception|failed) ----" 86 + if grep -iE 'error|exception|failed' "$logpath" >/dev/null 2>&1; then 87 + # show up to 200 matching lines to keep CI output bounded 88 + grep -iE 'error|exception|failed' "$logpath" | sed -n '1,200p' || true 89 + else 90 + echo "(no obvious error lines found in log)" 91 + fi 92 + echo "Full log available at: $logpath" 93 + else 94 + echo "❌ $name failed — no log found (metadata: $tmpdir/$pid.log)" 95 + fi 81 96 failed=1 82 97 fi 83 98 done