mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-28 17:24:27 -05:00
Additional edit alert updates (#652)
This commit is contained in:
@@ -123,6 +123,11 @@ namespace Microsoft.SqlTools.ServiceLayer.Management
|
||||
/// </summary>
|
||||
private ExecutionMode executionResult;
|
||||
|
||||
/// <summary>
|
||||
/// exception that caused execution failure
|
||||
/// </summary>
|
||||
private Exception executionFailureException;
|
||||
|
||||
/// <summary>
|
||||
/// text of the generated script if RunNow method was called last time with scripting option
|
||||
/// </summary>
|
||||
@@ -155,6 +160,17 @@ namespace Microsoft.SqlTools.ServiceLayer.Management
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// exception that caused execution failure
|
||||
/// </summary>
|
||||
public Exception ExecutionFailureException
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.executionFailureException;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// text of the generated script if RunNow method was called last time with scripting option
|
||||
/// </summary>
|
||||
@@ -325,7 +341,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Management
|
||||
private void ProcessExceptionDuringExecution(Exception ex)
|
||||
{
|
||||
// show the error
|
||||
this.executionResult = ExecutionMode.Failure;
|
||||
this.executionResult = ExecutionMode.Failure;
|
||||
this.executionFailureException = ex;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user