Skip to content

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

@neoneye

Description

@neoneye

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions