cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [04/11] git commit: error logging for missing callbackId
Date Thu, 09 May 2013 06:14:55 GMT
error logging for missing callbackId


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/66273d3e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/66273d3e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/66273d3e

Branch: refs/heads/master
Commit: 66273d3ed33caa5ae461b29187ad67fbe81aad48
Parents: f6240be
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Apr 30 23:21:41 2013 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Apr 30 23:21:41 2013 -0700

----------------------------------------------------------------------
 .../standalone/cordovalib/Commands/BaseCommand.cs  |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/66273d3e/templates/standalone/cordovalib/Commands/BaseCommand.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/BaseCommand.cs b/templates/standalone/cordovalib/Commands/BaseCommand.cs
index fd5d595..9de0e4d 100644
--- a/templates/standalone/cordovalib/Commands/BaseCommand.cs
+++ b/templates/standalone/cordovalib/Commands/BaseCommand.cs
@@ -58,6 +58,7 @@ namespace WPCordovaClassLib.Cordova.Commands
 
         public object InvokeMethodNamed(string callbackId, string methodName, params object[]
args)
         {
+            //Debug.WriteLine(string.Format("InvokeMethodNamed:{0} callbackId:{1}",methodName,callbackId));
             this.CurrentCommandCallbackId = callbackId;
             return InvokeMethodNamed(methodName, args);
         }
@@ -128,6 +129,10 @@ namespace WPCordovaClassLib.Cordova.Commands
             {
                 OnCommandResult(this, result);
             }
+            else
+            {
+                Debug.WriteLine("Failed to locate callback for id : " + result.CallbackId);
+            }
 
             if (!result.KeepCallback)
             {


Mime
View raw message