[gjs] Don't use undefined variable in dbus exception



commit a638481b1cb5632fed9bf160032746687ddeb609
Author: Lucas Rocha <lucasr gnome org>
Date:   Sat Aug 1 04:11:48 2009 +0100

    Don't use undefined variable in dbus exception
    
    http://bugzilla.gnome.org/show_bug.cgi?id=585609

 modules/dbus.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/dbus.js b/modules/dbus.js
index bd29d47..a38b35c 100644
--- a/modules/dbus.js
+++ b/modules/dbus.js
@@ -75,10 +75,10 @@ function _proxyInvoker(obj, ifaceName, methodName, outSignature, inSignature, ti
 
     if (arg_array.length < minNumberArgs) {
         throw new Error("Not enough arguments passed for method: " + methodName +
-                       ". Expected " + expectedNumberArgs + ", got " + arg_array.length);
+                       ". Expected " + minNumberArgs + ", got " + arg_array.length);
     } else if (arg_array.length > maxNumberArgs) {
         throw new Error("Too many arguments passed for method: " + methodName +
-                       ". Maximum is " + expectedNumberArgs +
+                       ". Maximum is " + maxNumberArgs +
                         " + one callback and/or flags");
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]