Fix batch parse failure message to give clear description of what failed (#566)

This commit is contained in:
Kevin Cunnane
2017-12-08 16:12:27 -08:00
committed by GitHub
parent d20215cb19
commit b51608f022

View File

@@ -8,6 +8,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode;
using System.Globalization;
namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{
@@ -347,7 +348,8 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser
{
Logger.Write(LogLevel.Verbose, SR.BatchParserWrapperExecutionError);
throw new Exception(SR.BatchParserWrapperExecutionEngineError);
throw new Exception(string.Format(CultureInfo.CurrentCulture,
SR.BatchParserWrapperExecutionEngineError, args.Message + Environment.NewLine + '\t' + args.Description));
}
}