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

JSONConfig.init?() should return nil, but returns self #2

Open
neoneye opened this issue May 19, 2018 · 0 comments
Open

JSONConfig.init?() should return nil, but returns self #2

neoneye opened this issue May 19, 2018 · 0 comments

Comments

@neoneye
Copy link

neoneye commented May 19, 2018

https://github.com/iamjono/JSONConfig/blob/master/Sources/jsonConfig.swift

When providing a path to a non-existing file, then Settings file does not exist is printed and the constructor succeeds. Here I would expect init to return nil instead of self. This would make it easier to troubleshoot.

I'm using JSONConfig via the Perfect-Local-Auth-PostgreSQL-Template project.

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

No branches or pull requests

1 participant