change_exit_code_when_bazel_none
diff --git a/configure.py b/configure.py
index da6af8f..9524ead 100644
--- a/configure.py
+++ b/configure.py
@@ -480,7 +480,7 @@
   """
   if which('bazel') is None:
     print('Cannot find bazel. Please install bazel.')
-    sys.exit(0)
+    sys.exit(1)
 
   stderr = open(os.devnull, 'wb')
   curr_version = run_shell(['bazel', '--version'],