TomInternalException hander

This commit is contained in:
Christian Wade 2020-03-17 20:13:41 -07:00
parent e33b020b56
commit 40ab6d0f36

View File

@ -16,6 +16,7 @@ using BismNormalizer.TabularCompare.Core;
using BismNormalizer.TabularCompare.UI;
using CefSharp;
using CefSharp.WinForms;
using Microsoft.AnalysisServices.Tabular;
namespace AlmToolkit
{
@ -273,6 +274,11 @@ namespace AlmToolkit
this.CompareTabularModels();
toolStripStatusLabel1.Text = "ALM Toolkit - finished comparing datasets";
}
catch (TomInternalException)
{
MessageBox.Show("TOM internal serialization error occurred. Please ensure JSON is valid tabular model metadata.", Utils.AssemblyProduct, MessageBoxButtons.OK, MessageBoxIcon.Error);
SetNotComparedState();
}
catch (Exception exc)
{
MessageBox.Show(exc.Message, Utils.AssemblyProduct, MessageBoxButtons.OK, MessageBoxIcon.Error);