diff --git a/R/utils.R b/R/utils.R index 9717ea49..7b18d76f 100644 --- a/R/utils.R +++ b/R/utils.R @@ -49,7 +49,7 @@ cargo_command_available <- function(args = "--help") { try_exec_cmd <- function(cmd, args = character()) { result <- tryCatch( processx::run(cmd, args, error_on_status = FALSE), - error = \(...) list(status = -1) + error = function(...) list(status = -1) ) if (result[["status"]] != 0) { NA_character_