Convert errors returned by task service to errdefs error.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
@@ -221,7 +221,7 @@ func (c *container) NewTask(ctx context.Context, ioCreate IOCreation, opts ...Ne
|
||||
} else {
|
||||
response, err := c.client.TaskService().Create(ctx, request)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, errdefs.FromGRPC(err)
|
||||
}
|
||||
t.pid = response.Pid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user