Skip to content

Commit 568fd2f

Browse files
committed
Include a stacktrace from V8
1 parent b6538ae commit 568fd2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/react/renderer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ class Renderer
55

66
class PrerenderError < RuntimeError
77
def initialize(component_name, props, js_message)
8-
message = "Encountered error \"#{js_message}\" when prerendering #{component_name} with #{props}"
8+
message = ["Encountered error \"#{js_message}\" when prerendering #{component_name} with #{props}",
9+
js_message.backtrace.join("\n")].join("\n")
910
super(message)
1011
end
1112
end

0 commit comments

Comments
 (0)