server_connection: show error when xhr fails

Change-Id: Ibe82cb33f04cc606740ec136e1ffb524a7025730
This commit is contained in:
mpl 2013-07-04 14:44:55 +02:00
parent d065aac5b7
commit 9b392f39a4
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ function(success, fail, e) {
}
if (error) {
if (fail) {
fail()
fail(xhr.getLastError())
} else {
// TODO(bslatkin): Add a default failure event handler to this class.
console.log('Failed XHR (text) in ServerConnection');