Permalink
Browse files

[fix] Display results of domain availability check

Commit from the height of 10 400 meters.
  • Loading branch information...
1 parent 7ecbadf commit d8e5db5917fe2ce10322aa434c68bad4f26d7832 @mmalecki mmalecki committed Apr 15, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/jitsu/package.js
@@ -599,6 +599,11 @@ package.available = function (pkg, dir, callback, createPackage) {
delete pkg.subdomain;
fields.push('subdomain');
}
+ if (isAvailable.domain === false) {
+ delete pkg.domains;
+ delete pkg.domain;
+ fields.push('domain');
+ }
props = package.properties(dir).filter(function (p) {
return fields.indexOf(p.name) !== -1;
});
@@ -618,6 +623,9 @@ package.available = function (pkg, dir, callback, createPackage) {
if (fields.indexOf('subdomain') !== -1) {
jitsu.log.error('The subdomain you have requested is already in use.');
}
+ if (fields.indexOf('domain') !== -1) {
+ jitsu.log.error('The domain you have requested is already in use.');
+ }
jitsu.prompt.addProperties(pkg, props, createPackage);
return;
}

0 comments on commit d8e5db5

Please sign in to comment.