How can I use the information that's returned after an ajax .fail?
<p>I set up the following:</p>

<pre><code>$.ajax({
    cache: false,
    url: "/Admin/Contents/GetCitiess",
    data: { accountID: AccountID }
})
    .done(function (data) {
        city.html(data);
    })
    .fail(function (jqXHR, textStatus, errorThrown) {
        ajaxOnFailure(jqXHR, textStatus, errorThrown);
    });


function ajaxOnFailure(jqXHR, textStatus, errorThrown) {
    "use strict";
    alert("Network connection " + textStatus);
}
</code></pre>

<p>Is there a better way that I could be using the .fail information. I would like to provide more information but I am not sure what I could provide and how I could do this. Note this is an internal application so I want to give as much failure information as possible.</p>
