Skip to content

Commit

Permalink
fix(project): proper HTTP error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
drawnepicenter committed Sep 15, 2016
1 parent add22fe commit 9eef640
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion build/cmds/acronym.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exports.handler = function (argv) {
}
});
} else {
throw new Error('HTTP ' + response.statusCode + ': ' + error);
throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
}
});
};
2 changes: 1 addition & 1 deletion build/cmds/dmuse_cmds/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, reset usage limits.\n' + config.dmuse.date.remain + '/' + config.dmuse.date.limit + ' requests remaining today.') : console.log(config.dmuse.date.remain + '/' + config.dmuse.date.limit + ' requests remaining today, will reset in ' + (23 - hours) + ' hours, ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached today\'s usage limit of ' + config.dmuse.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/dmuse_cmds/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports.handler = function (argv) {
console.log(chalk.white('Latency (/words): ' + Math.round(wordf.value * 100000) / 100.0 + ' ms (median), ' + Math.round(wordn.value * 100000) / 100.0 + ' ms (99 %ile)'));
console.log(chalk.white('Latency (/sug): ' + Math.round(sugf.value * 100000) / 100.0 + ' ms (median), ' + Math.round(sugn.value * 100000) / 100.0 + ' ms (99 %ile)'));
} else {
throw new Error('HTTP ' + response.statusCode + ': ' + error);
throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
}
});
var limit = config.dmuse.date.limit;
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/onelook.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ exports.handler = function (argv) {
} else console.log(config.onelook.date.remain + '/' + config.onelook.date.limit + ' requests remaining today, will reset in ' + (23 - hours) + ' hours, ' + (59 - minutes) + ' minutes.');
}
});
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached today\'s usage limit of ' + config.onelook.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/rhymebrain_cmds/combine.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, reset usage limits.\n' + config.rbrain.date.remain + '/' + config.rbrain.date.limit + ' requests remaining this hour.') : console.log(config.rbrain.date.remain + '/' + config.rbrain.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.rbrain.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/rhymebrain_cmds/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ exports.handler = function (argv) {
themes.label(theme, 'right', 'Word Flags', flags.join(''));
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
reset ? console.log('Timestamp expired, reset usage limits.\n' + config.rbrain.date.remain + '/' + config.rbrain.date.limit + ' requests remaining this hour.') : console.log(config.rbrain.date.remain + '/' + config.rbrain.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.rbrain.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/rhymebrain_cmds/rhyme.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ exports.handler = function (argv) {
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, reset usage limits.\n' + config.rbrain.date.remain + '/' + config.rbrain.date.limit + ' requests remaining this hour.') : console.log(config.rbrain.date.remain + '/' + config.rbrain.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
})();
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.rbrain.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/urban.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
} else {
throw new Error('HTTP ' + response.statusCode + ': ' + error);
throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
}
});
};
2 changes: 1 addition & 1 deletion build/cmds/wordnik_cmds/define.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, not decrementing usage.\n' + config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour.') : console.log(config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.wordnik.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/wordnik_cmds/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, not decrementing usage.\n' + config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour.') : console.log(config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.wordnik.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/wordnik_cmds/hyphen.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ exports.handler = function (argv) {
themes.label(theme, 'right', 'Hyphenation', hcont.join(''));
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, not decrementing usage.\n' + config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour.') : console.log(config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.wordnik.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/wordnik_cmds/origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ exports.handler = function (argv) {
});
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, not decrementing usage.\n' + config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour.') : console.log(config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.wordnik.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/wordnik_cmds/phrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, not decrementing usage.\n' + config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour.') : console.log(config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.wordnik.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/wordnik_cmds/pronounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, not decrementing usage.\n' + config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour.') : console.log(config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.wordnik.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion build/cmds/wordnik_cmds/relate.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ exports.handler = function (argv) {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile);
if (config.usage) reset ? console.log('Timestamp expired, not decrementing usage.\n' + config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour.') : console.log(config.wordnik.date.remain + '/' + config.wordnik.date.limit + ' requests remaining this hour, will reset in ' + (59 - minutes) + ' minutes.');
} else throw new Error('HTTP ' + response.statusCode + ': ' + error);
} else throw new Error('HTTP ' + error.statusCode + ': ' + error.reponse.body);
});
})();
} else throw new Error('Reached this hour\'s usage limit of ' + config.wordnik.date.limit + '.');
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/acronym.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ exports.handler = (argv) => {
}
})
} else {
throw new Error(`HTTP ${response.statusCode}: ${error}`)
throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
}
})
}
2 changes: 1 addition & 1 deletion src/cmds/dmuse_cmds/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, reset usage limits.\n${config.dmuse.date.remain}/${config.dmuse.date.limit} requests remaining today.`) : console.log(`${config.dmuse.date.remain}/${config.dmuse.date.limit} requests remaining today, will reset in ${23 - hours} hours, ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached today's usage limit of ${config.dmuse.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/dmuse_cmds/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exports.handler = (argv) => {
console.log(chalk.white(`Latency (/words): ${Math.round(wordf.value * 100000) / 100.0} ms (median), ${Math.round(wordn.value * 100000) / 100.0} ms (99 %ile)`))
console.log(chalk.white(`Latency (/sug): ${Math.round(sugf.value * 100000) / 100.0} ms (median), ${Math.round(sugn.value * 100000) / 100.0} ms (99 %ile)`))
} else {
throw new Error(`HTTP ${response.statusCode}: ${error}`)
throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
}
})
const limit = config.dmuse.date.limit
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/onelook.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ exports.handler = (argv) => {
} else console.log(`${config.onelook.date.remain}/${config.onelook.date.limit} requests remaining today, will reset in ${23 - hours} hours, ${59 - minutes} minutes.`)
}
})
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached today's usage limit of ${config.onelook.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/rhymebrain_cmds/combine.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, reset usage limits.\n${config.rbrain.date.remain}/${config.rbrain.date.limit} requests remaining this hour.`) : console.log(`${config.rbrain.date.remain}/${config.rbrain.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.rbrain.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/rhymebrain_cmds/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ exports.handler = (argv) => {
themes.label(theme, 'right', 'Word Flags', flags.join(''))
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
reset ? console.log(`Timestamp expired, reset usage limits.\n${config.rbrain.date.remain}/${config.rbrain.date.limit} requests remaining this hour.`) : console.log(`${config.rbrain.date.remain}/${config.rbrain.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.rbrain.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/rhymebrain_cmds/rhyme.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ exports.handler = (argv) => {
themes.label(theme, 'right', task, rcont.join(', '))
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, reset usage limits.\n${config.rbrain.date.remain}/${config.rbrain.date.limit} requests remaining this hour.`) : console.log(`${config.rbrain.date.remain}/${config.rbrain.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.rbrain.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/urban.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
} else {
throw new Error(`HTTP ${response.statusCode}: ${error}`)
throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
}
})
}
2 changes: 1 addition & 1 deletion src/cmds/wordnik_cmds/define.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, not decrementing usage.\n${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour.`) : console.log(`${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.wordnik.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/wordnik_cmds/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, not decrementing usage.\n${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour.`) : console.log(`${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.wordnik.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/wordnik_cmds/hyphen.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ exports.handler = (argv) => {
themes.label(theme, 'right', 'Hyphenation', hcont.join(''))
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, not decrementing usage.\n${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour.`) : console.log(`${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.wordnik.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/wordnik_cmds/origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ exports.handler = (argv) => {
})
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, not decrementing usage.\n${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour.`) : console.log(`${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.wordnik.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/wordnik_cmds/phrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, not decrementing usage.\n${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour.`) : console.log(`${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.wordnik.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/wordnik_cmds/pronounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, not decrementing usage.\n${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour.`) : console.log(`${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.wordnik.date.limit}.`)
}
2 changes: 1 addition & 1 deletion src/cmds/wordnik_cmds/relate.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ exports.handler = (argv) => {
}
if (argv.o) tools.outFile(argv.o, argv.f, tofile)
if (config.usage) reset ? console.log(`Timestamp expired, not decrementing usage.\n${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour.`) : console.log(`${config.wordnik.date.remain}/${config.wordnik.date.limit} requests remaining this hour, will reset in ${59 - minutes} minutes.`)
} else throw new Error(`HTTP ${response.statusCode}: ${error}`)
} else throw new Error(`HTTP ${error.statusCode}: ${error.reponse.body}`)
})
} else throw new Error(`Reached this hour's usage limit of ${config.wordnik.date.limit}.`)
}

0 comments on commit 9eef640

Please sign in to comment.