summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.bash b/test.bash
index bf47ee3..aa1adc7 100755
--- a/test.bash
+++ b/test.bash
@@ -37,4 +37,9 @@ else
echo "\"go tool vet\" not available - skipping"
fi
+if grep -R "panic(" internal ; then
+ echo "Please use log.Panic instead of naked panic!"
+ exit 1
+fi
+
) 200> $LOCKFILE