Skip to content

Commit

Permalink
fix error handling in esslint()
Browse files Browse the repository at this point in the history
`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’
```
  • Loading branch information
bastistician committed May 10, 2024
1 parent 98c1643 commit dbcff59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/ess-r-flymake.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
}
}
Expand Down

0 comments on commit dbcff59

Please sign in to comment.