Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/gh-client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down