Made changes to error reporting

This commit is contained in:
Andrew Henry
2015-11-04 22:07:26 -08:00
101 changed files with 7959 additions and 3303 deletions

View File

@@ -101,13 +101,27 @@ define(
self.notificationService.info("Copying complete.");
},
function error(errorDetails){
self.$log.error("Error copying objects. ", errorDetails);
//Show more general error message
self.notificationService.notify({
var errorMessage = {
title: "Error copying objects.",
severity: "error",
hint: errorDetails.message
});
hint: errorDetails.message,
minimized: true, // want the notification to be minimized initially (don't show banner)
options: [{
label: "OK",
callback: function() {
self.dialogService.dismiss();
}
}]
};
self.dialogService.dismiss();
if (self.notification) {
self.notification.dismiss(); // Clear the progress notification
}
self.$log.error("Error copying objects. ", errorDetails);
//Show more general error message
self.notificationService.notify(errorMessage);
self.dialogService.showBlockingMessage(errorMessage);
},
function notification(details){

View File

@@ -200,7 +200,7 @@ define(
this.buildCopyPlan(domainObject, parent, deferred.notify)
.then(this.persistObjects(deferred.notify))
.then(this.addClonesToParent(parent, deferred.notify))
.then(deferred.resolve);
.then(deferred.resolve, deferred.reject);
return deferred.promise;
} else {
throw new Error(