Actually I think the problem is the functions being tested need to not only catch the error but also throw an error for the tests or clients to catch.
Actually I think the problem is the functions being tested need to not only catch the error but also throw an error for the tests or clients to catch.