From 81046e3b714ca5756b74b4897c88f9332b75e571 Mon Sep 17 00:00:00 2001 From: Alhadis Date: Wed, 16 Nov 2016 19:33:55 +1100 Subject: [PATCH] Inform user of failed WOFF2 conversions --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9d53e5b..b412f6a 100644 --- a/Makefile +++ b/Makefile @@ -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."; \ };