mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Fix batch parse failure message to give clear description of what failed (#566)
This commit is contained in:
@@ -8,6 +8,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode;
|
using Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace Microsoft.SqlTools.ServiceLayer.BatchParser
|
namespace Microsoft.SqlTools.ServiceLayer.BatchParser
|
||||||
{
|
{
|
||||||
@@ -347,7 +348,8 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser
|
|||||||
{
|
{
|
||||||
|
|
||||||
Logger.Write(LogLevel.Verbose, SR.BatchParserWrapperExecutionError);
|
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));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user