Created by: blakeembrey
Currently, requiring modules like ts-node/register
can fail for unrelated issues (invalid tsconfig.json
, no typescript
installed, etc). It would be helpful for debugging to log out the reason it failed.
Related to https://github.com/TypeStrong/ts-node/issues/26.
It is possible to change the error level to error.stack
instead, but the message is probably enough most of the time. Also, it may make sense to log it as part of the same log message - not sure what the etiquette is there.