prin errorMsg only when failed

Change-Id: I42fa773aabab90bfa51fc8376f99a4f8482bc0db
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index 044a24f..b19188f 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -547,10 +547,12 @@
                         build job: 'deploy-heat-cleanup', parameters: [[$class: 'StringParameterValue', name: 'HEAT_STACK_NAME', value: HEAT_STACK_NAME]]
                     }
                 } else {
-                    common.errorMsg("Deploy job FAILED and was not deleted. Please fix the problem and delete stack on you own.")
+                    if (currentBuild.result == 'FAILURE') {
+                        common.errorMsg("Deploy job FAILED and was not deleted. Please fix the problem and delete stack on you own.")
 
-                    if (SALT_MASTER_URL) {
-                        common.errorMsg("Salt master URL: ${SALT_MASTER_URL}")
+                        if (SALT_MASTER_URL) {
+                            common.errorMsg("Salt master URL: ${SALT_MASTER_URL}")
+                        }
                     }
 
                 }