Skip to content

Commit

Permalink
Reveal the value detected in context to the user.
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Sep 17, 2023
1 parent 8b43f0b commit 77fc729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _extensions/webr/webr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function enableWebRCodeCell(el)
elseif cell_context == "output" then
copied_code_template = output_template
else
error("The `context` option must contain either: `interactive`, `setup`, or `output`.")
error("The `context` option must contain either: `interactive`, `setup`, or `output`. Not the value of `".. cell_context .."`")
end

-- Make the necessary substitutions into the template
Expand Down

0 comments on commit 77fc729

Please sign in to comment.