Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Apr 14, 2024
1 parent 108870d commit cd54c31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/cyclocomp_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ cyclocomp_linter <- function(complexity_limit = 15L) {
Linter(linter_level = "expression", function(source_expression) {
# nocov start
if (!requireNamespace("cyclocomp", quietly = TRUE)) {
cli::cli_abort("'cyclocomp' package needs to be installed for this linter.")
cli::cli_abort(c(
"Cyclocomp complexity is computed using {.fn cyclocomp::cyclocomp}.",
i = "Please install the needed {.pkg cyclocomp} package."
))
}
# nocov end

Expand Down

0 comments on commit cd54c31

Please sign in to comment.