emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/flymake-clippy 66247bdd45 14/16: If cargo not found, lo


From: ELPA Syncer
Subject: [elpa] externals/flymake-clippy 66247bdd45 14/16: If cargo not found, log and fail gracefully rather than erroring
Date: Sat, 22 Mar 2025 09:58:41 -0400 (EDT)

branch: externals/flymake-clippy
commit 66247bdd4570c1d81c3fed7c615c3ac4aeccf458
Author: Michael Kirkland <mak.kirkland@proton.me>
Commit: Michael Kirkland <mak.kirkland@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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]