From 11633deef92b33f4bada78d80496180d1737e443 Mon Sep 17 00:00:00 2001 From: w-h-a Date: Fri, 5 Jul 2024 21:14:54 -0700 Subject: [PATCH] refactor: improve mock client --- client/mockclient/mock_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mockclient/mock_client.go b/client/mockclient/mock_client.go index 755683a..5f4160c 100644 --- a/client/mockclient/mock_client.go +++ b/client/mockclient/mock_client.go @@ -31,7 +31,7 @@ func (c *mockClient) Call(ctx context.Context, req client.Request, rsp interface mock, ok := c.responses[req.Service()+":"+req.Method()] if !ok { - return errorutils.NotFound("mock.client", "service not found") + return errorutils.NotFound("mock.client", "service:method %s:%s not found in responses %+v", req.Service(), req.Method(), c.responses) } if mock.Err != nil {