Include error descriptions
Remove ternary statements to work with Python 2.4