Navigation Menu

Skip to content

Commit

Permalink
Output "Creating..." message only for actual creation
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 6, 2012
1 parent 192d231 commit 177e0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cs-create-domain
Expand Up @@ -20,15 +20,15 @@ if (!program.domainName) {
return process.exit(1);
}

console.log('Creating domain [' + program.domainName + ']');

var context = commandLine.getContext(program.databasePath);
var domain = new commandLine.Domain(program.domainName, context);
if (domain.exists()) {
console.log('The domain [' + program.domainName + '] already exists.');
return process.exit(1);
}

console.log('Creating domain [' + program.domainName + ']');

domain.createSync();

console.log('Domain endpoints are currently being created. ' +
Expand Down

0 comments on commit 177e0ee

Please sign in to comment.