More useful error info (error catching method)
fixed bug that stopped error messages