Merge "ExecutionServiceHandler error handler error fix."
authorBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>
Tue, 23 Jul 2019 20:02:51 +0000 (20:02 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 23 Jul 2019 20:02:51 +0000 (20:02 +0000)
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceHandler.kt

index 5a4f3de..347e5ea 100644 (file)
@@ -118,7 +118,7 @@ class ExecutionServiceHandler(private val bluePrintPathConfiguration: BluePrintP
             return output
         } catch (e: Exception) {
             log.error("fail processing request id $requestId", e)
-            return response(executionServiceInput, e.localizedMessage, true)
+            return response(executionServiceInput, e.localizedMessage ?: e.message ?: e.toString(), true)
         }
     }
 
@@ -156,4 +156,4 @@ class ExecutionServiceHandler(private val bluePrintPathConfiguration: BluePrintP
         return executionServiceOutput
     }
 
-}
\ No newline at end of file
+}