We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aa55e7 commit 0d3cb3dCopy full SHA for 0d3cb3d
R/pr.R
@@ -625,7 +625,15 @@ pr_clean <- function(
625
ui_bullets(c(
626
"v" = "Deleting local {.val {pr_local_branch}} branch."
627
))
628
- gert::git_branch_delete(pr_local_branch, repo = repo)
+ tryCatch(
629
+ gert::git_branch_delete(pr_local_branch, repo = repo),
630
+ error = function(e) {
631
+ saveRDS(e, "~/rrr/usethis/oops.rds")
632
+ ui_bullets(c(
633
+ "!" = "Wrote an error from git_branch_delete() to oops.rds!"
634
+ ))
635
+ }
636
+ )
637
}
638
639
if (is.null(pr)) {
oops.rds
230 Bytes
0 commit comments