mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 07:08:12 +00:00
Addressed issues from code review
This commit is contained in:
@ -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
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user