Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Apr 9, 2021
1 parent 46d198e commit e9427eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion container/ProcessContainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit e9427eb

Please sign in to comment.