mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Final iteration, fixing a couple mistakes for query exceptions
This commit is contained in:
@@ -177,12 +177,10 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
{
|
||||
HasError = true;
|
||||
UnwrapDbException(dbe);
|
||||
conn?.Dispose();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
HasError = true;
|
||||
conn?.Dispose();
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -213,6 +213,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
}
|
||||
catch (InvalidOperationException e)
|
||||
{
|
||||
// If this exception occurred, we most likely were trying to cancel a completed query
|
||||
await requestContext.SendResult(new QueryCancelResult
|
||||
{
|
||||
Messages = e.Message
|
||||
|
||||
Reference in New Issue
Block a user