From e9427eb13b0ecea0a714ffbcc080b7f7ccb2f2e3 Mon Sep 17 00:00:00 2001 From: Levichev Dmitry Date: Fri, 9 Apr 2021 22:21:35 +0300 Subject: [PATCH] Small updates --- container/ProcessContainer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/container/ProcessContainer.go b/container/ProcessContainer.go index 4fb9dfd..0395bb0 100644 --- a/container/ProcessContainer.go +++ b/container/ProcessContainer.go @@ -8,6 +8,7 @@ import ( "strings" cconfig "github.com/pip-services3-go/pip-services3-commons-go/config" + cconv "github.com/pip-services3-go/pip-services3-commons-go/convert" crefer "github.com/pip-services3-go/pip-services3-commons-go/refer" "github.com/pip-services3-go/pip-services3-components-go/log" ) @@ -154,7 +155,7 @@ func (c *ProcessContainer) captureErrors(correlationId string) { if r := recover(); r != nil { err, ok := r.(error) if !ok { - msg, _ := r.(string) + msg := cconv.StringConverter.ToString(r) err = errors.New(msg) } c.Logger().Fatal(correlationId, err, "Process is terminated")