Check for errors on Ajax requests too.  [#67314208]

"Generator should provide error message when it fails"
https://www.pivotaltracker.com/story/show/67314208