From e22f5710bdfa7d52f5a8706e65293e2a43d862f4 Mon Sep 17 00:00:00 2001 From: Adphi Date: Wed, 10 Aug 2022 11:42:16 +0200 Subject: [PATCH] tests: docs-up-to-date: show diff when failed Signed-off-by: Adphi --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ad94421..38fb0b5 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ tests: docs-up-to-date: @$(MAKE) docs - @git diff --quiet docs || (echo "Please regenerate the documentation with 'make docs'"; exit 1) + @git diff --quiet docs || (git --no-pager diff; echo "Please regenerate the documentation with 'make docs'"; exit 1) check-fmt: @[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]