Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic when submit not given args #797

Merged
merged 3 commits into from
Feb 26, 2019

Conversation

jdsutherland
Copy link
Contributor

@jdsutherland jdsutherland commented Jan 21, 2019

Currently, submit panics when run without args (i.e., exercism submit) due to attempting to index
an empty slice:

exercise, err := ctx.exercise(submitPaths[0])

Previously, submit panics when not given args due when trying to index
an empty array:

    exercise, err := ctx.exercise(submitPaths[0])
@jdsutherland jdsutherland force-pushed the submit-handles-no-args branch from eaed803 to 6f8b1be Compare January 21, 2019 03:04
@kytrinyx
Copy link
Member

@jdsutherland Life intruded, and I have failed to check in on all the CLI work! I'm so sorry to have left you hanging. I'm going to go through all the open work and see where we are, and see if I can get back on track.

@jdsutherland
Copy link
Contributor Author

@kytrinyx no problem! I don't think any sane person should expect this to be a priority over life stuff. Take your time.

Copy link
Member

@kytrinyx kytrinyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This is a great catch.

@kytrinyx kytrinyx merged commit 0b8fcea into exercism:master Feb 26, 2019
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