Added a reportError(message, data) method