-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Clarify error handling and config file search techniques in documentation #32
Comments
Implemented some of your suggestions in #55 . Probably will add the optional filename extension as well but need to give it a bit more thought. |
Appreciate the followup! Thanks for looking into this. |
Merged the fix for |
Sounds good to me! Thanks for looking into this. On Fri, Apr 3, 2015 at 6:00 AM, Kiril Zvezdarov notifications@github.com
|
A vote against including the workdir by default: #55 (comment) |
I just found this issue, and I don't have a strong argument for or against including WD in the path by default, it should at least be a little more clear in the docs, the aforementioned:
was better than all the other docs I found on the rest of the internet, as I did not want to set the working directory statically. I simply did:
If that was just dropped into the README.md, it might help a ton, no need to change the src I think. |
@variab1e, the issue of WD used by default caused plenty of confusion and was resolved in #73 by removing it from a default search sequence. Your way of explicitly adding WD is proper. |
Added PR #128 - does it address your concerns? |
Yes, I think this is perfectly clear. |
I included a few specific issues I had to figure out in issue #6 that has been closed, but I hadn't seen any specific fixes in the docs for the issues listed. I'm fine with the bug being 'wont fixed' but I just wanted to be sure the specific issues I had were bubbled up in case they were seen as just a 'me too' post on the thread. From #6:
I couldn't get this working on my first try out of the box and no feedback/ detailed errors (beyond generic io errors) from the apis makes figure this stuff out even harder
In my particular case, I assumed two things that were not obvious to me without reading the code:
configPaths
by default.configName
rather than justconfigName+"."+ext
for each known extensionIn addition, it would have been helpful for the example that does exist in the readme to properly check for errors loading the file to make it clear that thats how the API works without needing to dig into the source (as is the norm in go) e.g:
The text was updated successfully, but these errors were encountered: