Adds more context to failure message on AJAX calls.