Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Calles committed Jun 8, 2020
1 parent ad66f9a commit bf489cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.eslintrc.js
.gitignore
.github
.jsbeautifyrc
examples
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = class ServerlessPlugin {
'listHostedZones'
);
if (HostedZones.find((x) => x.Name === name)) {
this.log(`${zoneName} already exists.`);
this.log(`${name} already exists.`);
return;
}
const createParams = {
Expand Down Expand Up @@ -101,9 +101,9 @@ module.exports = class ServerlessPlugin {
createParams
);
if (!HostedZone || !HostedZone.Id) {
this.throwError(`Failed to create ${zoneName}`);
this.throwError(`Failed to create ${name}`);
}
this.log(`Created ${zoneName}`);
this.log(`Created ${name}`);
} catch (e) {
this.throwError(e.message);
}
Expand Down

0 comments on commit bf489cb

Please sign in to comment.