Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] Display results of domain availability check

Commit from the height of 10 400 meters.
  • Loading branch information...
commit d8e5db5917fe2ce10322aa434c68bad4f26d7832 1 parent 7ecbadf
@mmalecki mmalecki authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/jitsu/package.js
View
8 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.