Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Fails silently if file not found #13

Open
moppymopperson opened this issue Dec 12, 2018 · 1 comment
Open

Fails silently if file not found #13

moppymopperson opened this issue Dec 12, 2018 · 1 comment

Comments

@moppymopperson
Copy link

The line shown here fails silently if the env file is not found. It would be good to do something to alert the user when there is a problem. You could throw an errror or print a message.

if let path = path, let contents = try? NSString(contentsOfFile: path, encoding: String.Encoding.utf8.rawValue) {

@akrabat
Copy link
Contributor

akrabat commented Dec 12, 2018

Good catch!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants