Revert "Explicitly erroring out on some failing commands that were not already included (#882)" (#887)

This reverts commit 57b7126ccf.
This commit is contained in:
Udeesha Gautam
2019-10-30 14:51:41 -07:00
committed by GitHub
parent b9faabb704
commit d75edd0dbe
2 changed files with 15 additions and 13 deletions

View File

@@ -485,12 +485,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
}
catch (BatchParserException ex)
{
if (ex.ErrorCode == ErrorCode.UnsupportedCommand)
{
result = ScriptExecutionResult.Failure;
RaiseScriptError(string.Format(CultureInfo.CurrentCulture, ex.Message), ScriptMessageType.FatalError);
}
else if (ex.ErrorCode != ErrorCode.Aborted)
if (ex.ErrorCode != ErrorCode.Aborted)
{
result = ScriptExecutionResult.Failure;
string info = ex.Text;