Improve error reporting.

This commit is contained in:
Paulo Gustavo Veiga
2012-11-11 20:23:21 -03:00
parent 751692837c
commit df98282620
2 changed files with 8 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ mindplot.RESTPersistenceManager = new Class({
onFailure:function (xhr) {
var responseText = xhr.responseText;
var userMsg = {severity:"ERROR", message:$msg('SAVE_COULD_NOT_BE_COMPLETED')};
var userMsg = {severity:"SEVERE", message:$msg('SAVE_COULD_NOT_BE_COMPLETED')};
var contentType = this.getHeader("Content-Type");
if (contentType != null && contentType.indexOf("application/json") != -1) {
@@ -80,7 +80,7 @@ mindplot.RESTPersistenceManager = new Class({
} else {
if (this.status == 405) {
userMsg = {severity:"ERROR", message:$msg('SESSION_EXPIRED')};
userMsg = {severity:"SEVERE", message:$msg('SESSION_EXPIRED')};
}
}
events.onError(userMsg);