diff --git a/starlark_bin/bin/bazel.rs b/starlark_bin/bin/bazel.rs index 1c7af8641..652fd776c 100644 --- a/starlark_bin/bin/bazel.rs +++ b/starlark_bin/bin/bazel.rs @@ -141,7 +141,7 @@ pub(crate) fn main( prelude: &[PathBuf], ) -> anyhow::Result<()> { if !lsp { - anyhow::bail!("Bazel mode only supports `--lsp`"); + return Err(anyhow::anyhow!("Bazel mode only supports `--lsp`")); } // NOTE: Copied from `main.rs`