Browse Source

Improve error handling for alias creation, fixes #156

master
Jarmo Isotalo 8 years ago
parent
commit
802e59f680
  1. 2
      lib/alias.js

2
lib/alias.js

@ -197,7 +197,7 @@ export default class Alias extends Now {
this._agent._initAgent()
const newAlias = await this.createAlias(depl, alias)
if (!newAlias || !newAlias.created) {
if (!newAlias) {
throw new Error(`Unexpected error occurred while setting up alias: ${JSON.stringify(newAlias)}`)
}
const {created, uid} = newAlias

Loading…
Cancel
Save