Skip to content

Commit 11c86c3

Browse files
committed
Workaround for api bug.
1 parent b2bde7b commit 11c86c3

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

lib/commands/domain/domains/domainclient._js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ __.extend(DomainClient.prototype, {
123123
try {
124124
result = dns.domains.check(domainName, _);
125125
}
126+
catch(e) {
127+
// Workaround for current bug in DNSimple REST API that is returning 404 on a domain check that is not in your account
128+
if (e.data && e.code === 404 && e.error === null) {
129+
result = e.data;
130+
}
131+
}
126132
finally {
127133
progress.end();
128134
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"contributors": [
55
"Anderly, Adam <adam@anderly.com>"
66
],
7-
"version": "0.2.8",
7+
"version": "0.2.9",
88
"description": "DNSimple Command Line tool",
99
"tags": [
1010
"dnsimple",

0 commit comments

Comments
 (0)