Skip to content

Commit dd17b34

Browse files
committed
Make error msg match code
1 parent 55d71e4 commit dd17b34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/sdAttrs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ setMethod("$", "SpatialDataAttrs", \(x, name) x[[name]])
133133
x$ome$version
134134
if (!length(v)) stop("couldn't find 'version' in 'spatialdata_attrs'")
135135
ok <- length(v) == 1 && is.character(v) && (v <- gsub("-.*", "", v)) %in% sprintf("0.%d", seq_len(6))
136-
if (!ok) stop("invalid OME 'version'; expected '0.x' where x is 1-5")
136+
if (!ok) stop("invalid OME 'version'; expected '0.x' where x is 1-6")
137137
return(v)
138138
}
139139

0 commit comments

Comments
 (0)