From 000fa6d1eacf5bc22463551a359cc809aad624e4 Mon Sep 17 00:00:00 2001 From: Nick Boldt Date: Thu, 12 Mar 2026 18:04:05 -0300 Subject: [PATCH] chore: better debugging - if yarn-install.log exists, dump to console so we can see what went wrong (RHDHBUGS-2735) Signed-off-by: Nick Boldt --- export-dynamic/export-dynamic.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/export-dynamic/export-dynamic.sh b/export-dynamic/export-dynamic.sh index 5e79296..5e6d275 100755 --- a/export-dynamic/export-dynamic.sh +++ b/export-dynamic/export-dynamic.sh @@ -53,7 +53,14 @@ run_cli() { # we WANT cli_args to split by spaces here # shellcheck disable=SC2068 if ! "${cli_bin[@]}" ${cli_args_split[@]} >/tmp/export-dynamic-cli.log 2>&1; then - echo "Error running CLI: $(cat /tmp/export-dynamic-cli.log)" + echo "Error running CLI: " + echo "##########################################################" + cat /tmp/export-dynamic-cli.log + echo "##########################################################" + if [[ -f yarn-install.log ]]; then + cat yarn-install.log; + echo "##########################################################" + fi return 1 fi rm -f /tmp/export-dynamic-cli.log