Addressed issues from code review

This commit is contained in:
Henry
2016-02-29 18:42:48 -08:00
parent 5292b27e7d
commit 747a98d130
2 changed files with 4 additions and 5 deletions

View File

@ -104,15 +104,14 @@ define(
* persistence.
*/
function notifyOnError(error, domainObject, notificationService, $q){
var errorMessage = "Unable to persist " + domainObject.getModel().name,
notification;
var errorMessage = "Unable to persist " + domainObject.getModel().name;
if (error) {
errorMessage += ": " + formatError(error);
}
notification = notificationService.error({
notificationService.error({
title: "Error persisting " + domainObject.getModel().name,
hint: errorMessage || "Unknown error",
hint: errorMessage,
dismissable: true
});