Skip to content

Commit c85d1c5

Browse files
committed
copyedit error message
1 parent b048cdd commit c85d1c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/property.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ prop_validate <- function(prop, value, object = NULL) {
318318
}
319319

320320
stop(sprintf(
321-
"%s validator must return NULL or a character, not <%s>",
321+
"%s validator must return NULL or a character, not <%s>.",
322322
prop_label(object, prop$name), typeof(val)
323323
))
324324
}

R/valid.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ validate <- function(object, recursive = TRUE, properties = TRUE) {
9292
append(errors) <- error
9393
} else {
9494
stop(sprintf(
95-
"%s validator is expected to return NULL or a character, not <%s>",
95+
"%s validator must return NULL or a character, not <%s>.",
9696
obj_desc(class), typeof(error)
9797
))
9898
}

0 commit comments

Comments
 (0)