Skip to content

Fix errors print in debug #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2015

Conversation

rosen-vladimirov
Copy link
Contributor

Sync with latest common lib, where the following change is applied:
In case you are using Node 0.12.x and in config.json "debug" is set to true, the real error message is not printed to the output. When we are in debug mode, we print only the callstack and in Node 0.10.x , when fibers throw exception, the top row of the callstack is the error message. With Node 0.12.x, when error is thrown from fibers, the message is not part of the callstack for some reason. Workaround this behavior by checking the callstack and add the message in case it is missing.

@rosen-vladimirov rosen-vladimirov self-assigned this Apr 6, 2015
@rosen-vladimirov rosen-vladimirov added this to the 0.10 milestone Apr 6, 2015
@ns-bot
Copy link

ns-bot commented Apr 6, 2015

@dtopuzov
Copy link
Contributor

dtopuzov commented Apr 7, 2015

👍

Sync with latest common lib, where the following change is applied:
In case you are using Node 0.12.x and in config.json "debug" is set to true, the real error message is not printed to the output. When we are in debug mode, we print only the callstack and in Node 0.10.x , when fibers throw exception, the top row of the callstack is the error message. With Node 0.12.x, when error is thrown from fibers, the message is not part of the callstack for some reason. Workaround this behavior by checking the callstack and add the message in case it is missing.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-debug-print-errors branch from 87a0146 to a679809 Compare April 7, 2015 10:19
@ns-bot
Copy link

ns-bot commented Apr 7, 2015

rosen-vladimirov added a commit that referenced this pull request Apr 7, 2015
@rosen-vladimirov rosen-vladimirov merged commit 479201a into release Apr 7, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-debug-print-errors branch April 7, 2015 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants