mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Fix error not getting sent back when generating deploy plan (#1875)
This commit is contained in:
@@ -187,16 +187,19 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx
|
|||||||
out connInfo);
|
out connInfo);
|
||||||
if (connInfo != null)
|
if (connInfo != null)
|
||||||
{
|
{
|
||||||
GenerateDeployPlanOperation operation = new GenerateDeployPlanOperation(parameters, connInfo);
|
await BaseService.RunWithErrorHandling(async () =>
|
||||||
operation.Execute(parameters.TaskExecutionMode);
|
|
||||||
|
|
||||||
await requestContext.SendResult(new GenerateDeployPlanRequestResult()
|
|
||||||
{
|
{
|
||||||
OperationId = operation.OperationId,
|
GenerateDeployPlanOperation operation = new GenerateDeployPlanOperation(parameters, connInfo);
|
||||||
Success = true,
|
operation.Execute(parameters.TaskExecutionMode);
|
||||||
ErrorMessage = string.Empty,
|
|
||||||
Report = operation.DeployReport
|
return new GenerateDeployPlanRequestResult()
|
||||||
});
|
{
|
||||||
|
OperationId = operation.OperationId,
|
||||||
|
Success = true,
|
||||||
|
ErrorMessage = string.Empty,
|
||||||
|
Report = operation.DeployReport
|
||||||
|
};
|
||||||
|
}, requestContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user