Skip to content

Commit

Permalink
Inform user of failed WOFF2 conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Nov 16, 2016
1 parent b24533d commit 81046e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ $(font-folder)/%.woff2: %.zip
echo >&2 "WOFF2 conversion tools not found. Consult the readme file."; \
exit 2; \
}; \
woff2_compress $(font-folder)/$*.ttf >/dev/null; \
output=$$(woff2_compress $(font-folder)/$*.ttf 2>&1 >/dev/null) || { \
echo >&2 "WOFF2 conversion failed with error $$?:"; \
echo "$$output" | sed 's/^/\t/g'; \
exit 2; \
}; \
echo "WOFF2 file generated."; \
};

Expand Down

0 comments on commit 81046e3

Please sign in to comment.