Skip to content

Commit a374d4a

Browse files
committed
missing name needs to be checked first
1 parent 61e94cc commit a374d4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/create.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ quarto_create_project <- function(
5757
"https://quarto.org/docs/projects/quarto-projects.html"
5858
)
5959

60+
if (rlang::is_missing(name)) {
61+
cli::cli_abort("You need to provide {.arg name} for the new project.")
62+
}
63+
6064
# If title is provided, check for Quarto version 1.5.15 or higher
6165
if (title != name) {
6266
check_quarto_version(
@@ -66,10 +70,6 @@ quarto_create_project <- function(
6670
)
6771
}
6872

69-
if (rlang::is_missing(name)) {
70-
cli::cli_abort("You need to provide {.arg name} for the new project.")
71-
}
72-
7373
if (rlang::is_interactive() && !no_prompt) {
7474
folder_msg <- if (name != ".") {
7575
"as a folder named {.strong {name}}"

0 commit comments

Comments
 (0)