Skip to content

Commit

Permalink
less invasive change
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Mar 6, 2024
1 parent 1fd3cd9 commit 2a93251
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/pr.R
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,10 @@ pr_resume <- function(branch = NULL) {
check_string(branch)

if (!gert::git_branch_exists(branch, local = TRUE, repo = repo)) {
code <- glue('usethis::pr_init("{branch}")')
ui_abort(c(
"x" = "No branch named {.val {branch}} exists.",
"_" = "Call {.run usethis::pr_init('{branch}')} to create a new PR branch."
"_" = "Call {.run {code}} to create a new PR branch."
))
}

Expand Down

0 comments on commit 2a93251

Please sign in to comment.