nodejitsu/jitsu — Issue #130: `jitsu deploy` with duplicate application name + subdomain hard to use
Author: Marak
Created: 2011-11-25 00:25:54+00:00
State: open
Labels: medium-priority, regression

I should be prompted for a new app name if I have a duplicate application name. This error output is useless to me.

``` bash

Marak-Squiress-MacBook-Pro:http-server maraksquires$ jitsu deploy
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Authenticated as marak
warn:
warn: Your package.json file is missing required fields:
warn:
warn: subdomain
warn:
warn: Prompting user for required fields.
warn: Press ^C at any time to quit.
warn:
help:
help: The subdomain is where your application will reside.
help: Your application will then become accessible at: http://yourdomain.nodejitsu.com
help:
prompt: subdomain (http-server): foobarnew
error: App name / subdomain combination is not available
error: Unable to add properties to package description.
error: [object Object]
help:
help: Usage:
help:
help: Deploys an application using the following steps:
help:
help: 1. Creates the application (if necessary)
help: 2. Creates or validates the package.json
help: 3. Packages and creates a new snapshot
help: 4. Stops the application (if neccessary)
help: 5. Starts the application
help:
help: jitsu deploy
help: jitsu apps deploy
help:
error: Error running command deploy
info: Nodejitsu not ok
Marak-Squiress-MacBook-Pro:http-server maraksquires$

```