From 5ff49f6eeee0135e05a59e04fdd4ed0b2ebdf656 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 6 May 2024 09:00:23 -0600 Subject: [PATCH] ci: send stderr to handle_check_fail --- bin/ci | 4 ++-- common.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ci b/bin/ci index 94886d5..03f68ed 100755 --- a/bin/ci +++ b/bin/ci @@ -106,8 +106,8 @@ if [ "${1}" = "update" ]; then exit 1 fi else - if ! nix flake check --print-build-logs; then - handle_check_fail + if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check; then + handle_check_fail /tmp/ci-flake-check exit 1 fi fi diff --git a/common.sh b/common.sh index 57fa460..c252505 100644 --- a/common.sh +++ b/common.sh @@ -138,7 +138,7 @@ handle_update_fail() { } handle_check_fail() { - po_error "CI: checks failed!" "$(get_journal xin-ci)" + po_error "CI: checks failed!" "$(tail -n 30 $1)" } handle_update_check_fail() {