mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -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;
|
HasError = true;
|
||||||
UnwrapDbException(dbe);
|
UnwrapDbException(dbe);
|
||||||
conn?.Dispose();
|
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
HasError = true;
|
HasError = true;
|
||||||
conn?.Dispose();
|
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
@@ -213,6 +213,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
|||||||
}
|
}
|
||||||
catch (InvalidOperationException e)
|
catch (InvalidOperationException e)
|
||||||
{
|
{
|
||||||
|
// If this exception occurred, we most likely were trying to cancel a completed query
|
||||||
await requestContext.SendResult(new QueryCancelResult
|
await requestContext.SendResult(new QueryCancelResult
|
||||||
{
|
{
|
||||||
Messages = e.Message
|
Messages = e.Message
|
||||||
|
|||||||
Reference in New Issue
Block a user