From dbcff59bcbe8ccd73ccc1b940ae79682dbd708e2 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Fri, 10 May 2024 15:00:25 +0200 Subject: [PATCH] fix error handling in esslint() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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 dae246794..9df4402e1 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)) }) } }