Skip to content

Commit 45b65ff

Browse files
committed
We have to ui_stop() here
1 parent f2a5ab8 commit 45b65ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/git-default-branch.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,10 @@ challenge_non_default_branch <- function(details = "Are you sure you want to pro
522522
if (ui_nope("
523523
Current branch ({ui_value(actual)}) is not repo's default \\
524524
branch ({ui_value(default_branch)}).{details}")) {
525-
ui_oops("Cancelling.")
526-
return(invisible())
525+
ui_stop("Cancelling. Not on desired branch.")
527526
}
528527
}
528+
invisible()
529529
}
530530

531531
report_fishy_files <- function(old_name = "master", new_name = "main") {

0 commit comments

Comments
 (0)