Skip to content

Commit cd54c31

Browse files
Update error message
1 parent 108870d commit cd54c31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/cyclocomp_linter.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ cyclocomp_linter <- function(complexity_limit = 15L) {
2525
Linter(linter_level = "expression", function(source_expression) {
2626
# nocov start
2727
if (!requireNamespace("cyclocomp", quietly = TRUE)) {
28-
cli::cli_abort("'cyclocomp' package needs to be installed for this linter.")
28+
cli::cli_abort(c(
29+
"Cyclocomp complexity is computed using {.fn cyclocomp::cyclocomp}.",
30+
i = "Please install the needed {.pkg cyclocomp} package."
31+
))
2932
}
3033
# nocov end
3134

0 commit comments

Comments
 (0)