Merge branch 'master' of github.com:purplecabbage/cordova-wp7
diff --git a/templates/standalone/cordovalib/NativeExecution.cs b/templates/standalone/cordovalib/NativeExecution.cs
index 25efd01..c0d768e 100644
--- a/templates/standalone/cordovalib/NativeExecution.cs
+++ b/templates/standalone/cordovalib/NativeExecution.cs
@@ -145,7 +145,7 @@
catch (Exception ex)
{
// ERROR
- Debug.WriteLine(String.Format("ERROR: Unable to execute command :: {0}:{1}:{3} ",
+ Debug.WriteLine(String.Format("ERROR: Unable to execute command :: {0}:{1}:{2} ",
commandCallParams.Service, commandCallParams.Action, ex.Message));
this.OnCommandResult(commandCallParams.CallbackId, new PluginResult(PluginResult.Status.ERROR));
diff --git a/tooling/CordovaDeploy/CordovaDeploy/Program.cs b/tooling/CordovaDeploy/CordovaDeploy/Program.cs
index a862227..f8e1bdd 100644
--- a/tooling/CordovaDeploy/CordovaDeploy/Program.cs
+++ b/tooling/CordovaDeploy/CordovaDeploy/Program.cs
@@ -126,7 +126,7 @@
ListDevices();
return;
}
- else if (args[1].StartsWith("-d:"))
+ else if (args.Length > 1 && args[1].StartsWith("-d:"))
{
deviceIndex = int.Parse(args[1].Substring(3));
}