Updating error output in main.js.