diff --git a/Makefile b/Makefile index 32d2f44b72..fbd15bac77 100644 --- a/Makefile +++ b/Makefile @@ -607,7 +607,7 @@ tests-included: .PHONY: tests-expect-exit tests-expect-exit: - @if egrep 'Expect.*ExitCode' test/e2e/*.go | egrep -v ', ".*"\)'; then \ + @if egrep --line-number 'Expect.*ExitCode' test/e2e/*.go | egrep -v ', ".*"\)'; then \ echo "^^^ Unhelpful use of Expect(ExitCode())"; \ echo " Please use '.Should(Exit(...))' pattern instead."; \ echo " If that's not possible, please add an annotation (description) to your assertion:"; \