improve error handling

This commit is contained in:
Sebastian Sdorra
2010-12-19 15:13:45 +01:00
parent 6a469d134e
commit 6103e27cfe
5 changed files with 67 additions and 12 deletions

View File

@@ -47,7 +47,12 @@ Sonia.rest.JsonStore = Ext.extend( Ext.data.JsonStore, {
}
this.removeAll();
} else {
alert( action + "(" + status + "): " + response.responseText );
Ext.MessageBox.show({
title: 'Error',
msg: 'Could not load items. Server returned status: ' + status,
buttons: Ext.MessageBox.OK,
icon:Ext.MessageBox.ERROR
});
}
},
scope: this