mirror of https://github.com/perkeep/perkeep.git
server_connection: show error when xhr fails
Change-Id: Ibe82cb33f04cc606740ec136e1ffb524a7025730
This commit is contained in:
parent
d065aac5b7
commit
9b392f39a4
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue