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

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

[elpa] externals/ess dbcff59bcb 1/2: fix error handling in esslint()


From: ELPA Syncer
Subject: [elpa] externals/ess dbcff59bcb 1/2: fix error handling in esslint()
Date: Mon, 13 May 2024 09:58:16 -0400 (EDT)

branch: externals/ess
commit dbcff59bcbe8ccd73ccc1b940ae79682dbd708e2
Author: Sebastian Meyer <seb.meyer@fau.de>
Commit: Sebastian Meyer <seb.meyer@fau.de>

    fix error handling in esslint()
    
    `lintr::lint()` errors were catched but failed to get reported:
    
    ```
    Warning [ess-r-flymake  *ess-r-flymake*]:  Error in cat("@@warning: @@", e) 
:
      argument 2 (type ’list’) cannot be handled by ’cat’
    ```
---
 lisp/ess-r-flymake.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ess-r-flymake.el b/lisp/ess-r-flymake.el
index dae2467944..9df4402e14 100644
--- a/lisp/ess-r-flymake.el
+++ b/lisp/ess-r-flymake.el
@@ -90,7 +90,7 @@ each element is passed as argument to `lintr::with_defaults'."
         } else {
             tryCatch(lintr::lint(commandArgs(TRUE), ...),
                     error = function(e) {
-                       cat('@@warning: @@', e)
+                       cat('@@warning: @@', conditionMessage(e))
                     })
         }
     }



reply via email to

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