Very basic error reporting

Implementing this quick. Adding better reporting soon.