Skip to content

Commit 62d76aa

Browse files
committed
Improve as_slide_computation() unsupported class error message
1 parent 655aa69 commit 62d76aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ as_slide_computation <- function(f, ...) {
293293
return(fn)
294294
}
295295

296-
Abort(sprintf("Can't convert a %s to a slide computation", class(f)),
296+
Abort(sprintf("Can't convert an object of class %s to a slide computation", paste(collapse=" ", deparse(class(f)))),
297297
class = "epiprocess__as_slide_computation__cant_convert_catchall",
298298
epiprocess__f = f,
299299
epiprocess__f_class = class(f),

0 commit comments

Comments
 (0)