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

avoid ambiguous or unresolvable exercism paths #208

Merged
merged 2 commits into from
Aug 3, 2015

Conversation

lcowell
Copy link
Contributor

@lcowell lcowell commented Aug 3, 2015

Prepend any relative path with the current working directory so the path can be absolute and will be resolvable no matter what directory you're in.

Fixes #205

Update is not guaranteed to work, we should handle any returned errors.
@@ -22,7 +22,11 @@ func Configure(ctx *cli.Context) {
host := ctx.String("host")
dir := ctx.String("dir")
api := ctx.String("api")
c.Update(key, host, dir, api)

err = c.Update(key, host, dir, api)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we scope this in the if statement like so.

if err := c.Update(...); err != nil {

@lcowell
Copy link
Contributor Author

lcowell commented Aug 3, 2015

Thanks @Tonkpils - I've implemented your suggestions.

@Tonkpils
Copy link
Contributor

Tonkpils commented Aug 3, 2015

This is a great fix! Thanks!

Tonkpils added a commit that referenced this pull request Aug 3, 2015
avoid ambiguous or unresolvable exercism paths
@Tonkpils Tonkpils merged commit 33de50b into exercism:master Aug 3, 2015
@kytrinyx
Copy link
Member

kytrinyx commented Aug 8, 2015

+1000!

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.

3 participants