Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

improved exception handler, flag to keep unreferenced files #180

Merged
merged 8 commits into from
Jun 28, 2015

Conversation

Diullei
Copy link
Member

@Diullei Diullei commented Jun 27, 2015

This PR add the following features:

A flag to keep unreferenced typings when running reinstall command

Example:

tsd reinstall --config my-custom-tsd-json --keep-unreferenced

The exception handler has been improved

  • Now always we have an exception a log file named tsd-debug.log will be created. This file follows the npm npm-debug.log file concept. Now we can attach this file to submit with an issue always we have an exception. This file will be something like this:

Example:

Trying to use tsd with the command tsd query jquery without an internet connection I got an error like this:

[ERR!] cwd  : /home/.../tsd
[ERR!] os   : Linux 3.19.0-21-generic
[ERR!] argv : "node" ".../build/cli.js" "query" "jquery"
[ERR!] node : v0.12.4
[ERR!] tsd  : 0.6.3
[ERR!] Error: getaddrinfo EAI_AGAIN
[ERR!] CODE : EAI_AGAIN
[ERR!] getaddrinfo EAI_AGAIN
This is most likely not a problem with tsd itself
and is related to network connectivity.
In most cases you are behind a proxy or have bad network settings.

If you are behind a proxy, please make sure that the
'proxy' config is set properly.  See: https://github.com/DefinitelyTyped/tsd#tsdrc
[ERR!] .tsdrc could not be retrieved

[ERR!] Please include the following file with any support request:
    /tsd-debug.log
[ERR!] GitHub API: GitHub rate limit reached.
    To increase the limit use GitHub authentication.
    See: https://github.com/DefinitelyTyped/tsd#tsdrc

Diullei added a commit that referenced this pull request Jun 28, 2015
improved exception handler, flag to keep unreferenced files
@Diullei Diullei merged commit 0549c8a into DefinitelyTyped:master Jun 28, 2015
@Diullei Diullei mentioned this pull request Jun 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant