File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
src/Microsoft.SqlTools.ServiceLayer/DacFx Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,19 @@ public async Task HandleGenerateDeployPlanRequest(GenerateDeployPlanParams param
187187 out connInfo ) ;
188188 if ( connInfo != null )
189189 {
190- GenerateDeployPlanOperation operation = new GenerateDeployPlanOperation ( parameters , connInfo ) ;
191- operation . Execute ( parameters . TaskExecutionMode ) ;
192-
193- await requestContext . SendResult ( new GenerateDeployPlanRequestResult ( )
190+ await BaseService . RunWithErrorHandling ( async ( ) =>
194191 {
195- OperationId = operation . OperationId ,
196- Success = true ,
197- ErrorMessage = string . Empty ,
198- Report = operation . DeployReport
199- } ) ;
192+ GenerateDeployPlanOperation operation = new GenerateDeployPlanOperation ( parameters , connInfo ) ;
193+ operation . Execute ( parameters . TaskExecutionMode ) ;
194+
195+ return new GenerateDeployPlanRequestResult ( )
196+ {
197+ OperationId = operation . OperationId ,
198+ Success = true ,
199+ ErrorMessage = string . Empty ,
200+ Report = operation . DeployReport
201+ } ;
202+ } , requestContext ) ;
200203 }
201204 }
202205
You can’t perform that action at this time.
0 commit comments