Skip to content

Commit

Permalink
Surface ApplicationException message in the console.
Browse files Browse the repository at this point in the history
  • Loading branch information
phw198 committed Nov 28, 2021
1 parent 76baa33 commit c4d0f08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ public void CreateCalendarEntries(List<Event> events) {
createCalendarEntry(ev, ref newAi);
} catch (System.Exception ex) {
if (ex.GetType() == typeof(ApplicationException)) {
OGCSexception.Analyse(ex, true);
Forms.Main.Instance.Console.Update(GoogleOgcs.Calendar.GetEventSummary(ev, true) + "Appointment creation skipped.", Console.Markup.warning);
Forms.Main.Instance.Console.Update(GoogleOgcs.Calendar.GetEventSummary(ev, true) + "Appointment creation skipped: " + ex.Message, Console.Markup.warning);
continue;
} else {
Forms.Main.Instance.Console.UpdateWithError(GoogleOgcs.Calendar.GetEventSummary(ev, true) + "Appointment creation failed.", ex);
Expand Down

0 comments on commit c4d0f08

Please sign in to comment.