Browse Source

ci: print diff error on failure

Kellin McAvoy 4 years ago
parent
commit
250f40b869
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -69,7 +69,7 @@ reviewable: generate helm.generate
 # Ensure branch is clean.
 # Ensure branch is clean.
 check-diff: reviewable
 check-diff: reviewable
 	@$(INFO) checking that branch is clean
 	@$(INFO) checking that branch is clean
-	@test -z "$$(git status --porcelain)" || $(FAIL)
+	@test -z "$$(git status --porcelain)" || (echo "$$(git status --porcelain)" && $(FAIL))
 	@$(OK) branch is clean
 	@$(OK) branch is clean
 
 
 # ====================================================================================
 # ====================================================================================