mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-13 19:48:34 -05:00
SchemaCompare Unknown errors display fix with DacFx errors (#1188)
* SchemaCompare Unknown errors display fix with DacFx errors
This commit is contained in:
committed by
GitHub
parent
21527637dc
commit
6785940f1d
@@ -10,6 +10,7 @@ using Microsoft.SqlTools.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.SchemaCompare
|
||||
@@ -118,6 +119,10 @@ namespace Microsoft.SqlTools.ServiceLayer.SchemaCompare
|
||||
this.Differences.Add(diffEntry);
|
||||
}
|
||||
}
|
||||
|
||||
// Appending the set of errors that are stopping the schema compare to the ErrorMessage
|
||||
var errorsList = ComparisonResult.GetErrors().Select(e => e.Message).Distinct().ToList();
|
||||
ErrorMessage = string.Join("\n", errorsList);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user