Enhance debug output when api key is absent#297
Enhance debug output when api key is absent#297Tonkpils merged 1 commit intoexercism:masterfrom mrageh:enhance-debug-output-when-api-key-is-not-set
Conversation
Previously if the API key was not, some of the features of exercism cli would not work, for example exercism status. This commit just prompts the user to set their API key to access the full features of exercism cli, when its not set.
| } else { | ||
| fmt.Println("Config file: <not configured>") | ||
| fmt.Println("API Key: <not configured>") | ||
| fmt.Println("API Key: Please set your API Key to access all of the CLI features") |
There was a problem hiding this comment.
Let's leave this with the <not configured> text as it's on the case where the CLI is not configured at all and it makes more sense.
|
@Tonkpils when I opened the exercism status issue, I didn't have exercism configured. Which meant that when I tried to run exercism status, the server returned a 500. The message for the api key was not in helpful in the above instance. I think we should always prompt users to set their api key, when it's not set. |
|
Right, this was an issue with the server, the server will now return the On Sat, Mar 5, 2016 at 9:58 AM Adam notifications@github.com wrote:
|
|
@mrageh actually it doesn't hurt to mention the message on both instances so 👍 |
…-is-not-set Enhance debug output when api key is absent
Previously if the API key was not, some of the features of exercism cli would
not work, for example exercism status.
This commit just prompts the user to set their API key to access the full
features of exercism cli, when its not set.
This fix was suggested in #296 by @Tonkpils