diff --git a/build/Makefile b/build/Makefile index cfb80e5705..ef8bd7b3a5 100644 --- a/build/Makefile +++ b/build/Makefile @@ -997,6 +997,8 @@ diff-directory: else \ echo "Differences found."; \ echo "$$diff_output"; \ + echo "\n\n>>> Error: Generated CRD code in pkg/$(DIRECTORY) is out of date. Please run 'make gen-crd-code' to regenerate it and commit the changes.\n\n"; \ + exit 1; \ fi install-release: $(ensure-build-image) diff --git a/build/includes/sdk.mk b/build/includes/sdk.mk index 48aedf9164..d37d31da42 100644 --- a/build/includes/sdk.mk +++ b/build/includes/sdk.mk @@ -261,5 +261,6 @@ test-gen-all-sdk-grpc: echo "$$diff_output"; \ echo "Changes in ../test/sdk:"; \ echo "$$diff_output_test_sdk"; \ + echo "\n\n>>> Error: Generated SDK gRPC code is out of date. Please run 'make gen-all-sdk-grpc' to regenerate it and commit the changes.\n\n"; \ exit 1; \ fi