Powertest,
allthough your method will work, it is not good style. There are a lot
of other possible errors, starting at error 7 - file not found. Just
resetting error.status to false prevents the following code from proper
error handling. And there's a reason for the existence of warnings. I
am not sure of the code of a warning is allways meaning the same as
that of an error.
Instead of changing errors to wartning, you should compare your error
cluster with the expected error (in your case error 4) and, if equal,
replace it with a no_error-constant.
Attached you'll find an example for this kind of specific error handler.
Using this techniques you limit the reported errors to _all_ those that
have not been expected and those that can not be handled locally. While
the latter ones might be expected, the first group is totally
undetermined and so cannot be handled properly. Ignoring those can harm
your code.
Greetings from Germany!<br>-- <br>Uwe