diff --git a/nyx/bash/nyx-tui.sh b/nyx/bash/nyx-tui.sh index 79e5455..072aa84 100644 --- a/nyx/bash/nyx-tui.sh +++ b/nyx/bash/nyx-tui.sh @@ -251,6 +251,15 @@ check_last_log_for_error() { d_textbox "Last Build Error" "$tmp" rm -f "$tmp" return 1 + elif grep -qi "failed" "$lastlog"; then + local tmp + tmp="$(mktemp)" + echo "Error detected in: $(basename "$lastlog")" > "$tmp" + echo >> "$tmp" + grep -A99999 -i "error" "$lastlog" >> "$tmp" + d_textbox "Last Build Error" "$tmp" + rm -f "$tmp" + return 1 fi fi return 0 diff --git a/nyx/nyx-tui.nix b/nyx/nyx-tui.nix index e6bfb11..03f7e69 100644 --- a/nyx/nyx-tui.nix +++ b/nyx/nyx-tui.nix @@ -16,7 +16,7 @@ let [ (toString nyxCfg.logDir) (toString nyxCfg.nixDirectory) - "1.1.0" + "1.1.1" "${pkgs.dialog}/bin/dialog" ] src;