Skip to content

Commit fe1d0ea

Browse files
committed
🚸 Improve error message when the reviewer is one of the authors
1 parent 8328eb0 commit fe1d0ea

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎R/create_report.R‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,13 @@ insert_author_reviewer <- function(yaml) {
229229
rbind(author[, c("given", "family", "email")]) |>
230230
anyDuplicated() -> duplo
231231
if (duplo > 0) {
232-
cat(
233-
paste(author$given, author$family, "is already listed as author")
234-
)
232+
paste(
233+
author$given,
234+
author$family,
235+
"is already listed as author.",
236+
"\nPlease select someone else."
237+
) |>
238+
cat()
235239
}
236240
}
237241
c(yaml, " reviewer:", author2yaml(author, corresponding = FALSE))

0 commit comments

Comments
 (0)