fixed error reporting for post_submit.js