Skip to content

Don't run status command if API key is missing.#339

Merged
Tonkpils merged 1 commit intoexercism:masterfrom
ests:fix-panic-for-status-cmd
Jul 22, 2016
Merged

Don't run status command if API key is missing.#339
Tonkpils merged 1 commit intoexercism:masterfrom
ests:fix-panic-for-status-cmd

Conversation

@ests
Copy link
Contributor

@ests ests commented Jul 22, 2016

Running exercism status ruby command when API is missing (f.i. I've deleted config file) will make actual HTTP request and cause PANIC: %!v(PANIC=runtime error: invalid memory address or nil pointer dereference). I believe it should behave in the same way like submit command (prevent any requests and print message).

@ests ests changed the title Don't run command if API key is missing. Don't run status command if API key is missing. Jul 22, 2016
@Tonkpils
Copy link
Contributor

Great, thanks for this!

@Tonkpils Tonkpils merged commit 2cdb318 into exercism:master Jul 22, 2016
@ests ests deleted the fix-panic-for-status-cmd branch July 22, 2016 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants