Merge "Updated guard policy documentation"
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / controller / dictionaryController / MSModelsDictController.js
index 67b68ec..105225a 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
+ * ONAP Policy Engine
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
@@ -46,6 +46,11 @@ app.controller('editMSModelController' ,  function ($scope, $modalInstance, mess
                        headers: {'Content-Type': undefined },
                        transformRequest: angular.identity
                }).success(function(data){
+                       if(data.errorMsg != undefined){
+                               Notification.error(data.errorMsg);
+                               valid = false;
+                               return;
+                       }                       
                 if(data.classListDatas  == "EMPTY"){
                        Notification.error("No Micro Services Avaialble.")
                 }else{