From 1e9bc66b95dcb642c8a3625775e33fb62ae50a9b Mon Sep 17 00:00:00 2001 From: Stuart Lodge Date: Mon, 13 Nov 2023 08:16:14 +0000 Subject: [PATCH] Updated error message --- R/plumb-block.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/plumb-block.R b/R/plumb-block.R index d40ab3d3..05245134 100644 --- a/R/plumb-block.R +++ b/R/plumb-block.R @@ -357,9 +357,9 @@ evaluateBlock <- function(srcref, file, expr, envir, addEndpoint, addFilter, add !is.null(block$routerModifier), !is.null(block$object)) > 1){ stopOnLine(lineNum, file[lineNum], - "A single function can only be a filter, an API endpoint, ", + paste0("A single function can only be a filter, an API endpoint, ", "an asset, an object or a Plumber object modifier (@filter AND @get, ", - "@post, @assets, @plumber, etc.)") + "@post, @assets, @plumber, etc.)")) } # ALL if statements possibilities must eventually call eval(expr, envir)