Bug 920801 - Port chat/ changes from Instantbird to comm-central - 6 - Bio 2010 - Some JS errors when joining some IRC channels - better debug messages, r=clokep.
authorPatrick Cloke <clokep@gmail.com>
Fri, 03 Jan 2014 14:54:29 -0500
changeset 17248 e91ae242d0e9b5f4ca78804549a190f3f689ad04
parent 17247 01a788d85004870df4a482bbbcbd2ff92bb1034b
child 17249 004bbca2f2bd652b159de34109e1f1be5a27671e
push id1103
push usermbanner@mozilla.com
push dateTue, 18 Mar 2014 07:44:06 +0000
treeherdercomm-beta@50c6279a0af0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep
bugs920801
Bug 920801 - Port chat/ changes from Instantbird to comm-central - 6 - Bio 2010 - Some JS errors when joining some IRC channels - better debug messages, r=clokep.
mail/components/im/content/imconversation.xml
--- a/mail/components/im/content/imconversation.xml
+++ b/mail/components/im/content/imconversation.xml
@@ -941,20 +941,20 @@
            this._activeBuddies[aBuddy.name] = true;
          }
 
          if (!this.tab.selected)
            return;
 
          // Is aOldName is not null, then we are renaming the buddy
          if (!this._hasBuddy(aOldName))
-           throw "Updating a chat buddy that does not exist?!";
+           throw "Updating a chat buddy that does not exist: " + aOldName;
 
          if (this._hasBuddy(name))
-           throw "Updating a chat buddy to an already existing one?!";
+           throw "Updating a chat buddy to an already existing one: " + name;
 
          var item = this.buddies[aOldName];
          item.chatBuddy = aBuddy;
          delete this.buddies[aOldName];
          this.buddies[name] = item;
          item.setAttribute("label", name);
 
          // Move this item to the right position if its name changed