Skip to content

Commit

Permalink
Specify interactive mode in doc (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
meztez authored Nov 27, 2023
1 parent aa627ac commit 56a6949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/rendering-output.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Plumber wraps each endpoint invocation so that it can gracefully capture errors.
```{r, eval = FALSE, code = readLines("files/apis/04-05-error.R")}
```

If you run this API and visit http://localhost:8000/simple, you'll notice two things:
If you run this API in interactive mode and visit http://localhost:8000/simple, you'll notice two things:

1. An HTTP response with a status code of `500` ("internal server error") is sent to the client. You should see an error message resembling: `{"error":["500 - Internal server error"],"message":["Error in (function () : I'm an error!\n"]}`
2. A similar error is printed in the terminal where you're running your Plumber API.
Expand Down

0 comments on commit 56a6949

Please sign in to comment.