JennyGee created CB-5442:
----------------------------
Summary: wrong error message when you need a debug token
Key: CB-5442
URL: https://issues.apache.org/jira/browse/CB-5442
Project: Apache Cordova
Issue Type: Bug
Components: BlackBerry, CLI
Reporter: JennyGee
Priority: Minor
This is a actually corner case where cordova already has a debug token but it
belongs to another device AND the user does not provide a keystorepassword.
Cordova will end up spitting up a WARNING that a keystore is not provided and
just dies. But in reality for just this scenario there should be a proper ERROR
message that the keystore is needed because the debug token is invalid for that
device or some message like that.
ci0000003068684:accelerometer_compass jgee$ cordova run --devicepass 121212
--verbose
cordova library for "blackberry10" already exists. No need to download.
Continuing.
Generating config.xml from defaults for platform "blackberry10"
Calling plugman.prepare for platform "blackberry10"
Preparing blackberry10 project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.device-motion' ]
Writing out cordova_plugins.js...
Ensuring plugin "org.apache.cordova.device-motion" is installed correctly...
Plugin "org.apache.cordova.device-motion" is good to go.
Running app on platform "blackberry10" via command
"/Users/jgee/RippleSites/accelerometer_compass/platforms/blackberry10/cordova/run"
--device --devicepass 121212
[INFO] Target Z10-2a4a6327 selected
[WARN] No signing password provided, debug token cannot be generated. Please
enter a value for 'keystorepass' in %HOME%/.cordova/blackberry10.json or use
--keystorepass via command-line directly from the project cordova scripts.
An error has occurred
child_process.spawn(/Users/jgee/RippleSites/accelerometer_compass/platforms/blackberry10/cordova/run,[--device,
--devicepass, 121212]) = 2
Error: An error occurred while running the blackberry10 project.An error has
occurred
at ChildProcess.<anonymous>
(/Users/jgee/REPOS/cordova3.2/cordova-cli/src/run.js:67:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
--
This message was sent by Atlassian JIRA
(v6.1#6144)