We're in a modal dialog, and we don't want the generic AJAX error notification to pop up if there's an error -- it would look nicer to simply modify the contents of the modal. I've added a comment explaining this.