-
Notifications
You must be signed in to change notification settings - Fork 3k
Stop telling users to e-mail me #9948
Comments
I dont immediately see how this is even feasible. How would you go about building it? |
Ooh, if there's repository data in the package.json, that could be a lot better! |
Something like this?: diff --git a/lib/utils/error-handler.js b/lib/utils/error-handler.js
index cd61f79..a8364b4 100644
--- a/lib/utils/error-handler.js
+++ b/lib/utils/error-handler.js
@@ -200,8 +200,8 @@ function errorHandler (er) {
'not with npm itself.',
'Tell the author that this fails on your system:',
' ' + er.script,
- 'You can get their info via:',
- ' npm owner ls ' + er.pkgname,
+ 'You can report this error here:',
+ ' npm bugs ' + er.pkgname,
'There is likely additional logging output above.'
].join('\n')
) |
I like that idea @kenany , and then just make sure to provide a |
I really like how |
It should be possible for cases where the project is hosted in GitHub (and has the repository field configured correctly). |
Urge users to open an issue when an error occurs on a package instead of telling them to contact the author by default. See npm#9948
@trodrigues's change above looks good to me |
Urge users to open an issue when an error occurs on a package instead of telling them to contact the author by default. Fixes: #9948 Credit: @trodrigues Reviewed-By: @othiym23 PR-URL: #10496
This is fixed in |
Also added it for |
Like the vast majority of package maintainers, my preferred method for receiving bug reports is on GitHub. Apart from anything, most people who go to GitHub realise that someone else has already had their problem and solved it. Unfortunatley npm keeps telling them to email me:
npm/lib/utils/error-handler.js
Lines 203 to 204 in 2724e30
Could we direct them to the relevant github issues instead?
The text was updated successfully, but these errors were encountered: