Skip to content

Conversation

@rmosolgo
Copy link
Member

A simple attempt at solving #42. Even with better_errors it's not pretty:

image

But I'm not sure what else can be done. Have a look at how ProgramError is raised: https://github.com/sstephenson/execjs/search?utf8=%E2%9C%93&q=ProgramError

It looks like it only comes with a message -- no stack trace. Any ideas on how to make this more useful?

@zpao
Copy link
Member

zpao commented Sep 15, 2014

Seems like a reasonable solution, better to raise than log and fail silently. Then the program can handle appropriately itself. I'm game to take this, I'll let it sit for a couple days and see if anybody else has comments.

@RSO
Copy link

RSO commented Sep 20, 2014

👍

zpao added a commit that referenced this pull request Sep 22, 2014
Raise any JS error when prerendering
@zpao zpao merged commit 9d9c41e into reactjs:master Sep 22, 2014
@zpao
Copy link
Member

zpao commented Sep 22, 2014

Thanks!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we log the stack trace too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants