Adds a crude but helpful error reporting system