From a91ac362e7662ff26ef2f98d152cc957faec6bb9 Mon Sep 17 00:00:00 2001 From: "mikep%oeone.com" Date: Tue, 21 Jan 2003 18:18:45 +0000 Subject: [PATCH] Adding in better debug info. git-svn-id: svn://10.0.0.236/trunk@136735 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/resources/content/calendarMail.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/calendar/resources/content/calendarMail.js b/mozilla/calendar/resources/content/calendarMail.js index 524b64ee5b4..1dbe65c608b 100644 --- a/mozilla/calendar/resources/content/calendarMail.js +++ b/mozilla/calendar/resources/content/calendarMail.js @@ -173,7 +173,8 @@ function sendEvent() CalendarDataFilePath = getCalendarDataFilePath(); if (! CalendarDataFilePath) { - return; + alert( "No calendarDataFilePath in calendarMail.js" ); + return; } /* Want output like * When: Thursday, November 09, 2000 11:00 PM-11:30 PM (GMT-08:00) Pacific Time @@ -249,6 +250,7 @@ function sendEvent() } catch(ex) { + alert( ex ); mdebug("failed to get composer window\nex: " + ex); } } @@ -392,7 +394,7 @@ function sendEmail(Subject, Body, To, Cc, Bcc, Attachment, Priority) } catch(e) { - dump( "\n------------------\nThere is no default account, and I caught an exception in penemail.js on line 45. "+e +"\n--------------------------------\n" ); + alert( "\n------------------\nThere is no default account, and I caught an exception in penemail.js on line 45. "+e +"\n--------------------------------\n" ); AccountExists = accountSetupError(); }