Fix generating error message on exception

My bad, sorry - e.strerror doesn't exist on Exception in python, and so we got PASS when result should be FAIL on exception (smoketest's error) during the test.
This should be an urgent fix.

Fixed, and unittest method added (TDFix).