Bug 683129 - Typo in AddonDatabase.getStatement when handling error. r=dtownsend
authorBlair McBride <bmcbride@mozilla.com>
Wed, 07 Sep 2011 16:25:23 +1200
changeset 76660 c5aa67488400c90644d4fbbbaad34e96ed403701
parent 76659 f02efebc5a0d9b2440eb513f9394cd0e2a338d92
child 76661 f9c574a28a7a33a63fcc80ffbac9ab65d552c92b
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersdtownsend
bugs683129
milestone9.0a1
Bug 683129 - Typo in AddonDatabase.getStatement when handling error. r=dtownsend
toolkit/mozapps/extensions/AddonRepository.jsm
--- a/toolkit/mozapps/extensions/AddonRepository.jsm
+++ b/toolkit/mozapps/extensions/AddonRepository.jsm
@@ -1454,17 +1454,17 @@ var AddonDatabase = {
   getStatement: function AD_getStatement(aKey) {
     if (aKey in this.statementCache)
       return this.statementCache[aKey];
 
     let sql = this.statements[aKey];
     try {
       return this.statementCache[aKey] = this.connection.createStatement(sql);
     } catch (e) {
-      ERROR("Error creating statement " + aKey + " (" + aSql + ")");
+      ERROR("Error creating statement " + aKey + " (" + sql + ")");
       throw e;
     }
   },
 
   /**
    * Asynchronously retrieve all add-ons from the database, and pass it
    * to the specified callback
    *