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

revert to old find_files interface #291

Merged
merged 2 commits into from
Dec 4, 2015
Merged

revert to old find_files interface #291

merged 2 commits into from
Dec 4, 2015

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Dec 4, 2015

Fixes #276.

Included tests are minimal.

return []
else
return files
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can simplify this:

return files if exit_status == 0
# received an error
warn "find_files(): non-zero exit status: #{exit_status}"
return []

@chris-rock
Copy link
Contributor

@srenatus Thanks for the improvement of the find_files test. This is much better now. I think we can simplify the exit code handling even further.

- fixes #276
- basic test for find_files
@srenatus
Copy link
Contributor Author

srenatus commented Dec 4, 2015

@chris-rock ok, updated (if I understood your proposal correctly). While the find_files_or_error method might seem superfluous, it conveys the intention of 1345c1d to allow the utility method user to recognize errors.

⚠️ That said, the method is still not robust, the "default" handling doesn't work; will add tests and fixes in a minute.

@chris-rock
Copy link
Contributor

cool that is so simple now.

@srenatus
Copy link
Contributor Author

srenatus commented Dec 4, 2015

Tests should be improved, but I'd rather just see this bug gone now. :)

@chris-rock
Copy link
Contributor

Thanks @srenatus for this fix.

chris-rock added a commit that referenced this pull request Dec 4, 2015
revert to old find_files interface
@chris-rock chris-rock merged commit 7c393a1 into master Dec 4, 2015
@arlimus arlimus deleted the sr/fix-find_files branch December 4, 2015 13:55
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.

None yet

2 participants