Skip to content

Commit e03a973

Browse files
committed
fix: output hint on failure
Signed-off-by: Michael Nahkies <michael@nahkies.co.nz>
1 parent 7fc7682 commit e03a973

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ lint: gradle-dependencies ## Format the Android code
322322

323323
.PHONY: lint-ci
324324
lint-ci: gradle-dependencies ## Check the Android code is formatted
325-
(cd android && ./gradlew ktfmtCheck)
325+
(cd android && ./gradlew ktfmtCheck) \
326+
|| (echo -e "\033[1;31mLint failed. Run 'make lint' to fix.\033[0m" && exit 1)
326327

327328
.PHONY: emulator
328329
emulator: ## Start an android emulator instance

0 commit comments

Comments
 (0)