exit on error for modtidy-all
@@ -127,7 +127,7 @@ MODFILES := $(shell find . -name go.mod)
define modtidy-target
.PHONY: modtidy-$(1)
modtidy-$(1):
- cd $(shell dirname $(1)); go mod tidy -compat=1.19; cd -
+ cd $(shell dirname $(1)); go mod tidy -compat=1.19 || { echo "There was an error in running go mod tidy for this file,"; exit 1;}; cd -
endef
define replaceruntime-dapr
