Fixed misleading error message.
Added a helpful comment.
Error dialogues are now drawn in HTML.