TODO reminder

This commit is contained in:
Bryan Ashby 2016-07-09 20:08:08 -06:00
parent 7717ac8b5f
commit 1aa77530dd
1 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ function getMenuConfig(client, name, cb) {
if(_.isString(menuConfig.prompt)) { if(_.isString(menuConfig.prompt)) {
if(_.has(client.currentTheme, [ 'prompts', menuConfig.prompt ])) { if(_.has(client.currentTheme, [ 'prompts', menuConfig.prompt ])) {
menuConfig.promptConfig = client.currentTheme.prompts[menuConfig.prompt]; menuConfig.promptConfig = client.currentTheme.prompts[menuConfig.prompt];
callback(null); callback(null);
} else { } else {
callback(new Error('No prompt entry for \'' + menuConfig.prompt + '\'')); callback(new Error('No prompt entry for \'' + menuConfig.prompt + '\''));
} }
@ -213,7 +213,8 @@ function handleNext(client, nextSpec, conf) {
} }
var nextAsset = asset.getAssetWithShorthand(nextSpec, 'menu'); var nextAsset = asset.getAssetWithShorthand(nextSpec, 'menu');
// :TODO: getAssetWithShorthand() can return undefined - handle it!
conf = conf || {}; conf = conf || {};
var extraArgs = conf.extraArgs || {}; var extraArgs = conf.extraArgs || {};