displaySuccessMessage($.i18n.prop('managedrepository.updated',self.managedRepository.id()));
activateManagedRepositoriesGridTab();
self.managedRepository.modified(false);
- },
- error: function(data) {
- var res = $.parseJSON(data.responseText);
- displayRestError(res);
}
}
);
clearUserMessages();
displayErrorMessage($.i18n.prop('authz.karma.needed'));
},
- 500: function(){
+ 500: function(data){
removeSmallSpinnerImg();
removeMediumSpinnerImg("#main-content");
clearUserMessages();
- displayErrorMessage($.i18n.prop('error.500'));
+ displayRestError($.parseJSON(data.responseText));
+ //displayErrorMessage($.i18n.prop('error.500'));
}
}
});
* if not error is displayed in #user-messages div
*/
displayRestError=function(data,idToAppend){
-
+ $.log("displayRestError");
if (data.redbackRestError){
displayRedbackError(archivaRestError,idToAppend)
}
if (data.errorKey && data.errorKey.length>0){
displayErrorMessage($.i18n.prop( data.errorKey ),idToAppend);
} else {
- $.log("data.errorMessage:"+data.errorMessage);
+ $.log("print data.errorMessage:"+data.errorMessage);
displayErrorMessage(data.errorMessage,idToAppend);
}