Update post-message.html

Add error handler.