Skip to content

Commit

Permalink
Handle change in error reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
philstopford committed Nov 23, 2020
1 parent ed1728c commit fdc0276
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Common/Variance/UI/UIHandlers_file.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,16 @@ async void geoFileChooser_Handler_exp(object sender, EventArgs e)
}
else
{
error = commonVars.getGeoCoreHandler(settingsIndex).errormsg;
error = "";
int noOfErrors = commonVars.getGeoCoreHandler(settingsIndex).error_msgs.Count;
for (int s = 0; s < noOfErrors; s++)
{
error += commonVars.getGeoCoreHandler(settingsIndex).error_msgs[s];
if ((s > 0) && (s != noOfErrors - 1))
{
error += "\r\n";
}
}
commonVars.getGeoCoreHandler(settingsIndex).getGeo().reset();
}
Application.Instance.Invoke(() =>
Expand All @@ -454,7 +463,7 @@ async void geoFileChooser_Handler_exp(object sender, EventArgs e)
do2DLayerUI_exp(settingsIndex, updateUI: true);
if (!fileOK)
{
ErrorReporter.showMessage_OK(error, "Error loading file");
ErrorReporter.showMessage_OK(error, "Error(s) loading file");
}
});
}
Expand Down

0 comments on commit fdc0276

Please sign in to comment.