fix error reporting in authoring.js