core: fix OS version fallback when the host catalog lacks the requested version & harden template validation (#16068)

This commit is contained in:
CanbiZ (MickLesk)
2026-07-27 19:32:09 +02:00
committed by GitHub
parent 7cee1cb96a
commit 895cc7fdcf
2 changed files with 119 additions and 141 deletions
+4 -3
View File
@@ -376,10 +376,11 @@ error_handler() {
active_log="$BUILD_LOG"
fi
# stderr: the trap can fire inside a $(...) capture that would eat this as data
if [[ -n "$active_log" && -s "$active_log" ]]; then
echo -e "\n${TAB}--- Last 20 lines of log ---"
tail -n 20 "$active_log"
echo -e "${TAB}-----------------------------------\n"
echo -e "\n${TAB}--- Last 20 lines of log ---" >&2
tail -n 20 "$active_log" >&2
echo -e "${TAB}-----------------------------------\n" >&2
fi
# ── Node.js heap OOM detection with actionable guidance ──