Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant