diff --git a/src/Microsoft.SqlTools.ServiceLayer/SchemaCompare/SchemaCompareOperation.cs b/src/Microsoft.SqlTools.ServiceLayer/SchemaCompare/SchemaCompareOperation.cs index 8b50162e..b6a4f469 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/SchemaCompare/SchemaCompareOperation.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/SchemaCompare/SchemaCompareOperation.cs @@ -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) {