Improve error reporting during the service import
[sdc.git] / asdctool / src / main / resources / config / error-configuration.yaml
index 0ac4369..b9f1858 100644 (file)
@@ -1325,9 +1325,10 @@ errors:
   }
   #---------SVC4605------------------------------
   # %1 - csar file name
+  # %2 - error message
   CSAR_INVALID_FORMAT: {
     code: 400,
-    message: "Error: TOSCA CSAR '%1' is invalid. Invalid 'TOSCA-Metadata/Tosca.meta' file format.",
+    message: "Error: TOSCA CSAR '%1' is invalid. Invalid 'TOSCA-Metadata/Tosca.meta' file format.\n%2",
     messageId: "SVC4605"
   }
   #---------SVC4606------------------------------
@@ -2886,3 +2887,26 @@ errors:
     message: "Error: Uploaded YAML file is invalid.\n%1",
     messageId: "SVC4010"
   }
+
+  #---------SVC4019-----------------------------
+  # %1 - metadata property name
+  UNCHANGEABLE_PROPERTY_ERROR: {
+    code: 402,
+    message: "Error: '%1' cannot change",
+    messageId: "SVC4019"
+  }
+
+  #---------SVC4020-----------------------------
+  MISSING_SERVICE_METADATA: {
+    code: 402,
+    message: "Error: Missing metadata in Service",
+    messageId: "SVC4020"
+  }
+
+  #---------SVC4021-----------------------------
+  # %1 - missing properties list
+  MISSING_PROPERTIES_ERROR: {
+    code: 402,
+    message: "Error: The following properties:\n%1\nused in the substitution mapping node type in CSAR are missing from the system. Please add these to the node in the SDC catalog prior to importing the template",
+    messageId: "SVC4021"
+  }