[nfbcs] Failing If Statement

Mike Gorse mike at straddlethebox.org
Fri Oct 27 20:00:07 UTC 2017


On Fri, 27 Oct 2017, Lanie Molinar wrote:

> Okay, then if that doesn't work,I need to find a way to get rid of the 
> duplicate error messages in test 5:
...
> Starting Test 5
>
> This should yield an error because the file does not exist

Look at your if clauses. It's a good idea to stop trying to do things if 
your code encounters a fatal error. Ie, why not have your first if clause 
return from the function if it determines that the file doesn't exist, 
rather than going on and trying to read from the stream?

-Mike




More information about the NFBCS mailing list