From 3f9a4bbcaa7c3c78b2c709373172503a67084611 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 25 Jun 2018 22:45:44 +0200 Subject: main: replace naked panic with log.Panic Fix the check that failed to find the case as well. --- test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test.bash') diff --git a/test.bash b/test.bash index 5f0c7e4..d306b7e 100755 --- a/test.bash +++ b/test.bash @@ -64,7 +64,7 @@ else rm -Rf $TESTDIR fi -if grep -R "panic(" internal ; then +if grep -R "panic(" *.go internal ; then echo "Please use log.Panic instead of naked panic!" exit 1 fi -- cgit v1.2.3