Fix misleading errormessages in script exeutors 53/109853/1
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Mon, 6 Jul 2020 11:54:08 +0000 (07:54 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Mon, 6 Jul 2020 12:27:21 +0000 (08:27 -0400)
Issue-ID: CCSDK-2528
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I1a8dfc14b1fbddced4a3c2a06f8a35df34303976

ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/ComponentRemoteScriptExecutor.kt
ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/ComponentScriptExecutor.kt

index 6003cce..dbc7340 100644 (file)
@@ -101,6 +101,6 @@ open class ComponentRemoteScriptExecutor(
 
     override suspend fun recoverNB(runtimeException: RuntimeException, executionRequest: ExecutionServiceInput) {
         bluePrintRuntimeService.getBluePrintError()
-            .addError("Failed in ComponentCliExecutor : ${runtimeException.message}")
+            .addError("Failed in ComponentRemoteScriptExecutor : ${runtimeException.message}")
     }
 }
index 2a63297..382c26c 100644 (file)
@@ -66,7 +66,7 @@ open class ComponentScriptExecutor(private var componentFunctionScriptingService
 
     override suspend fun recoverNB(runtimeException: RuntimeException, executionRequest: ExecutionServiceInput) {
         bluePrintRuntimeService.getBluePrintError()
-            .addError("Failed in ComponentCliExecutor : ${runtimeException.message}")
+            .addError("Failed in ComponentScriptExecutor : ${runtimeException.message}")
     }
 
     open fun populateScriptDependencies(scriptDependencies: MutableList<String>) {