Check if file exists before reading it#1
Check if file exists before reading it#1coldfix merged 1 commit intodeficient:masterfrom Scorfly:fixFileNotFound
Conversation
|
Hey, I'm a bit worried that this just delays potential errors until the corresponding value is used at some point down the line. If adding this, we should also handle the case that the input variables are nil. |
|
I did this because on my computer one file does not exist : I totally understand your point of view. I'll check to update this later. |
|
I just amended my commit to add check on mandatory values if a mandatory file is missing the function get_state return nil i would add a popup/notiffication to inform that a file is missing but https://awesome.naquadah.org does not work any more and every thing i found need to require naughty, so i did not for now |
|
This isn't satisfactory either: Assume one of the mandatory files is not found, then I think there are two options here:
What do you prefer? |
|
I amended my commit in |
|
Great thanks. |
No description provided.