In exportClass.js, added onerror() message.