Remove unused parameter for metadata application.
Make error message more clear.

https://gerrit.mcp.mirantis.com/c/mcp/artifact-metadata-app/+/151422

Related-PROD: RE-2197

Change-Id: Ide1e92e5cae1ee32da0e6a8805cf5a3e76d8c8a3
diff --git a/src/com/mirantis/mk/ReleaseWorkflow.groovy b/src/com/mirantis/mk/ReleaseWorkflow.groovy
index 8da3c6d..f7c7c6c 100644
--- a/src/com/mirantis/mk/ReleaseWorkflow.groovy
+++ b/src/com/mirantis/mk/ReleaseWorkflow.groovy
@@ -64,7 +64,7 @@
     docker.image(appDockerImage).inside("--volume ${repoDir}:/workspace") {
         checkResult = sh(script: "metadata-app --path /workspace/metadata ${opts} validate --structure", returnStatus: true)
         if (checkResult != 0) {
-            throw new Exception("Invalid metadata structure")
+            throw new Exception("Invalid metadata structure, see errors in the metadata.log file")
         }
         result = sh(script: "metadata-app --path /workspace/metadata ${opts} get --key ${key}", returnStdout: true).trim()
     }
@@ -165,9 +165,9 @@
                     }
                     try {
                         sh "metadata-app --path /workspace/metadata update --create --key '${keyArr[i]}' ${valueExpression}"
-                        checkResult = sh(script: "metadata-app --path /workspace/metadata ${opts} validate --structure", returnStatus: true)
+                        checkResult = sh(script: "metadata-app --path /workspace/metadata validate --structure", returnStatus: true)
                         if (checkResult != 0) {
-                            throw new Exception("Invalid metadata structure")
+                            throw new Exception("Invalid metadata structure, see errors in the metadata.log file")
                         }
                     } finally {
                         if (valuesFromFile){