mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 17:24:17 -05:00
include additional data for error object (#1539)
* include additional data for error * fix tests
This commit is contained in:
@@ -39,7 +39,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.TaskServices
|
||||
{
|
||||
object errorResponse = null;
|
||||
var contextMock = RequestContextMocks.Create<ListTasksResponse>(null)
|
||||
.AddErrorHandling((errorMessage, errorCode) => errorResponse = errorMessage);
|
||||
.AddErrorHandling((errorMessage, errorCode, data) => errorResponse = errorMessage);
|
||||
|
||||
await service.HandleListTasksRequest(null, contextMock.Object);
|
||||
VerifyErrorSent(contextMock);
|
||||
|
||||
Reference in New Issue
Block a user