Permalink
Browse files

Merge pull request #22 from PowerShell/WarningMessage

Improving warning message when ApiTokens.psm1 does not exist
  • Loading branch information...
KarolKaczmarek committed Sep 26, 2016
2 parents 7be9ef8 + ebc9440 commit 6cc9f653140660fd7a19b49369cc1da505e5b70f
Showing with 6 additions and 6 deletions.
  1. +3 −3 GitHubAnalytics.psm1
  2. +3 −3 GitHubLabels.psm1
View
@@ -11,10 +11,10 @@ if (Test-Path $apiTokensFilePath)
}
else
{
Write-Host "$apiTokensFilePath does not exist, skipping import"
Write-Host @'
Write-Warning "$apiTokensFilePath does not exist, skipping import"
Write-Warning @'
This module should define $global:gitHubApiToken with your GitHub API access token in ApiTokens.psm1. Create this file if it doesn't exist.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken, then reimport this module with -Force switch.
You can get GitHub token from https://github.com/settings/tokens
If you don't provide it, you can still use this module, but you will be limited to 60 queries per hour.
'@
View
@@ -11,10 +11,10 @@ if (Test-Path $apiTokensFilePath)
}
else
{
Write-Host "$apiTokensFilePath does not exist, skipping import"
Write-Host @'
Write-Warning "$apiTokensFilePath does not exist, skipping import"
Write-Warning @'
This module should define $global:gitHubApiToken with your GitHub API access token in ApiTokens.psm1. Create this file if it doesn't exist.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken, then reimport this module with -Force switch.
You can get GitHub token from https://github.com/settings/tokens
If you don't provide it, you can still use this module, but you will be limited to 60 queries per hour.
'@

0 comments on commit 6cc9f65

Please sign in to comment.