From 2131d18ee32dbea0fa0de73afe12b70677fe6edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Mon, 24 Jun 2024 13:00:42 +0200 Subject: [PATCH] Print error of metadata download failure --- R/metadata-cache.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/metadata-cache.R b/R/metadata-cache.R index f7cede07..0ffe672f 100644 --- a/R/metadata-cache.R +++ b/R/metadata-cache.R @@ -779,9 +779,10 @@ missing_pkgs_note <- function(pkgs, result) { what <- vcapply(msgs, "[[", 1) where <- vcapply(msgs, "[[", 2) + errmsg <- vcapply(which(bad), function(i) conditionMessage(result[[i]])) for (wt in unique(what)) { wh <- unique(where[what == wt]) - cli::cli_alert_info("{wt} packages are missing from {wh}") + cli::cli_alert_info("{wt} packages are missing from {wh}: {errmsg}") } }