mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-29 17:24:34 -05:00
Explicitly erroring out on some failing commands that were not already included (#882)
* Excplitly erroring out on some failing commands that was not happening before * Ensuring the error message goes through without getting converted to different error
This commit is contained in:
@@ -485,7 +485,12 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
|
||||
}
|
||||
catch (BatchParserException ex)
|
||||
{
|
||||
if (ex.ErrorCode != ErrorCode.Aborted)
|
||||
if (ex.ErrorCode == ErrorCode.UnsupportedCommand)
|
||||
{
|
||||
result = ScriptExecutionResult.Failure;
|
||||
RaiseScriptError(string.Format(CultureInfo.CurrentCulture, ex.Message), ScriptMessageType.FatalError);
|
||||
}
|
||||
else if (ex.ErrorCode != ErrorCode.Aborted)
|
||||
{
|
||||
result = ScriptExecutionResult.Failure;
|
||||
string info = ex.Text;
|
||||
|
||||
Reference in New Issue
Block a user