summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbild6
1 files changed, 6 insertions, 0 deletions
diff --git a/bild b/bild
index 36d8917..5466d52 100755
--- a/bild
+++ b/bild
@@ -1,2 +1,8 @@
#!/usr/bin/env bash
nix build -f default.nix "$@"
+if [[ $? != 0 ]]
+then
+ echo ":: bild fail"
+ echo ":: replaying the log..."
+ PAGER=cat nix log -f default.nix "$@"
+fi