Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-5246 cordova/run disambiguate no target exists message
Reviewed by Bryan Higgins <bhiggins@blackberry.com>
  • Loading branch information
jsoref authored and bryanhiggins committed Nov 4, 2013
1 parent f2d756e commit 46ac29fd7a766a783160532cc210cc1ed11fdc53
Showing 1 changed file with 2 additions and 2 deletions.
@@ -82,9 +82,9 @@ function validateTarget(options, targetName, allDone) {
runTasks = [];

if (!targetName) {
err = "No target exists, to add that target please run target add <name> <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]";
err = "No target exists, to add that target please run: target add <name> <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]";
} else if (!properties.targets[targetName]) {
err = "The target \"" + targetName + "\" does not exist, to add that target please run target add " + targetName + " <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]";
err = "The target \"" + targetName + "\" does not exist, to add that target please run: target add " + targetName + " <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]";
} else {
deployTarget = utils.clone(properties.targets[targetName]);
deployTarget.name = targetName;

0 comments on commit 46ac29f

Please sign in to comment.