branch: externals/flymake-clippy commit 66247bdd4570c1d81c3fed7c615c3ac4aeccf458 Author: Michael Kirkland <mak.kirkl...@proton.me> Commit: Michael Kirkland <mak.kirkl...@proton.me>
If cargo not found, log and fail gracefully rather than erroring --- flymake-clippy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flymake-clippy.el b/flymake-clippy.el index 3f879360a8..637d20eb81 100644 --- a/flymake-clippy.el +++ b/flymake-clippy.el @@ -61,7 +61,8 @@ for Rust linting in the current buffer." For details on REPORT-FN, see `flymake-diagnostic-functions'." (unless (executable-find flymake-clippy-cargo-path) - (error "Cannot find Cargo at `%s`" flymake-clippy-cargo-path)) + (flymake-log :error "Cannot find Cargo at `%s`" flymake-clippy-cargo-path) + (cl-return-from flymake-clippy-backend)) ;; If process is still running from the last check, kill it (when (process-live-p flymake-clippy--proc) (kill-process flymake-clippy--proc))