added some functionallity so you can see an error if it occurs.

Maybe I'll change it later so this can be turned on or off.