aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-14 23:06:27 -0300
committerEuAndreh <eu@euandre.org>2020-02-14 23:06:27 -0300
commit43a9e4eb977477275086b65bc5337f520499e08e (patch)
treef55e6c8224dfc7ac0cce6e2b1d9fc85ef44c3bf7 /default.nix
parentRemove old error tidy message (diff)
downloadeuandre.org-43a9e4eb977477275086b65bc5337f520499e08e.tar.gz
euandre.org-43a9e4eb977477275086b65bc5337f520499e08e.tar.xz
Improve error message of tidy-content.sh
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 537c2ae..2f10691 100644
--- a/default.nix
+++ b/default.nix
@@ -37,7 +37,11 @@ in rec {
buildPhase = ''
patchShebangs .
jekyll build -d $out
- ./scripts/tidy-content.sh $out
+ ./scripts/tidy-content.sh $out || {
+ echo 'Error in formatting HTML. Reproduce with: '
+ echo ' jekyll build && ./scripts/tidy-content.sh _site/'
+ exit 1
+ }
'';
});
};