Skip to content

Commit

Permalink
Updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
slodge committed Nov 13, 2023
1 parent 25e1a24 commit 1e9bc66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/plumb-block.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e9bc66

Please sign in to comment.