Skip to content

Commit

Permalink
Added friendly error message to now alias (#1140)
Browse files Browse the repository at this point in the history
* Added friendly error message to now alias command

* Delete .login.js.swp

* Delete .domains.js.swp
  • Loading branch information
ayusheesingh authored and leo committed Feb 26, 2018
1 parent dfe8163 commit b3234d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/sh/util/alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ module.exports = class Alias extends Now {
}
}

if (code === 'invalid_alias') {
return bail(new Error('We do not support nested subdomains.'))
}

return bail(new Error(body.error.message))
}

Expand Down

0 comments on commit b3234d2

Please sign in to comment.