Skip to content
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

Log errors with original source code and line #117

Open
pragmaticivan opened this issue Jan 11, 2018 · 0 comments
Open

Log errors with original source code and line #117

pragmaticivan opened this issue Jan 11, 2018 · 0 comments

Comments

@pragmaticivan
Copy link
Contributor

By Ciro Costa:
Hey,

right now it's kinda hard to spot right away which line of code caused a certain error.

For instance:

 > ERR!   �[0m�[97m�[41mError�[0m�[90m:�[0m�[37m �[0m�[97mBad Request�[0m
 > ERR! �[0m  �[0m�[90m-�[0m �[0m�[93merrors.js�[0m�[90m:�[0m�[93m45�[0m�[37m �[0m�[37mthrowValidationError�[0m
 > ERR! �[0m  �[0m  �[0m�[90m/wedeploy-container/.magnet/server/src/manager/BuildManager.js:449:48�[0m
 > ERR! �[0m  �[0m
 > ERR! �[0m  �[0m�[90m-�[0m �[0m�[93mdocker.js�[0m�[90m:�[0m�[93m295�[0m�[37m �[0m
 > ERR! �[0m  �[0m�[90m-�[0m �[0m�[93mmodem.js�[0m�[90m:�[0m�[93m262�[0m�[37m �[0m
 > ERR! �[0m  �[0m�[90m-�[0m �[0m�[93mevents.js�[0m�[90m:�[0m�[93m111�[0m�[37m �[0m�[37memitNone�[0m
 > ERR! �[0m  �[0m
 > ERR! �[0m  �[0m�[90m-�[0m �[0m�[93mevents.js�[0m�[90m:�[0m�[93m208�[0m�[37m �[0m�[37mIncomingMessage.emit�[0m
 > ERR! �[0m  �[0m  �[0m�[90mevents.js:208:7�[0m
 > ERR! �[0m  �[0m
 > ERR! �[0m  �[0m  �[0m�[90m_stream_readable.js:1056:12�[0m
 > ERR! �[0m  �[0m  �[0m�[90minternal/process/next_tick.js:180:9�[0m
 > ERR! �[0m  �[0m
 > ERR!   "status": 400,
 > ERR!   "message": "Bad Request",

points to a transpilled code (./magnet/server/src...) which we can't jump right into the source code and check.

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

No branches or pull requests

1 participant