From 685e6b07d7d71b6b7d7f6f0f08f1edbe831ccca8 Mon Sep 17 00:00:00 2001 From: Sean Zhu Date: Wed, 24 Jan 2018 11:37:52 -0800 Subject: [PATCH] Update error message to reflect that token is retrieved from keytar --- lib/gh-client.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gh-client.coffee b/lib/gh-client.coffee index bcf720a..a965e00 100644 --- a/lib/gh-client.coffee +++ b/lib/gh-client.coffee @@ -215,10 +215,11 @@ module.exports = new class GitHubClient # yield [] so consumers still run return [] catch error + console.error(error) atom.notifications.addError 'Error fetching Pull Request data from GitHub', dismissable: true - detail: 'Make sure you are connected to the internet and if this is a private repository then you will need to create a token from https://github.com/settings/tokens and provide it to the pull-requests plugin settings' + detail: """Make sure you are connected to the internet. If this is a private repository then you will need to create a token from https://github.com/settings/tokens and add it to your system keychain with service name "#{KEYTAR_SERVICE_NAME}" and account name "#{KEYTAR_ACCOUNT_NAME}".""" # tokenDialog = new Dialog({ # defaultValue: keytar.getPassword(KEYTAR_SERVICE_NAME, KEYTAR_ACCOUNT_NAME)