Skip to content

Commit 2c825e6

Browse files
committed
generalize the error message
1 parent 885bc3f commit 2c825e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/guide.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ validate_plate_format <- function(guide) {
110110
)
111111
}
112112
if (!(as.character(guide$plate.format) %in% names(.plateformats))) {
113+
formats <- names(.plateformats)
113114
rlang::abort(glue::glue(
114-
"The plate format in the spreadsheet guide is not valid. It must be one of '24', '48', '96', or '384'."
115+
"The plate format in the spreadsheet guide is not valid. It must be one of {paste0(formats, collapse = ', ')}"
115116
))
116117
}
117118
}

0 commit comments

Comments
 (0)