update error handling in tcp call hander
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 29s
Build and Publish / BuildAndDeploy (push) Successful in 2m33s

This commit is contained in:
matst80
2024-11-21 21:43:14 +01:00
parent 1f7f161e62
commit d5efb39872
3 changed files with 5 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ func TestGenericConnection(t *testing.T) {
return nil
})
listener.AddHandler(3, func(input *FrameWithPayload, resultChan chan<- FrameWithPayload) error {
return fmt.Errorf("Error")
return fmt.Errorf("Error in custom handler")
})
r, err := conn.Call(1, datta)
if err != nil {