Fix DoesNotExist error
This commit is contained in:
parent
5ab927d2f5
commit
0b78b42f2f
|
@ -37,7 +37,7 @@ function getMenuConfig(client, name, cb) {
|
||||||
menuConfig.promptConfig = client.currentTheme.prompts[menuConfig.prompt];
|
menuConfig.promptConfig = client.currentTheme.prompts[menuConfig.prompt];
|
||||||
return callback(null, menuConfig);
|
return callback(null, menuConfig);
|
||||||
}
|
}
|
||||||
return callback(Error.DoesNotExist(`No prompt entry for "${menuConfig.prompt}"`));
|
return callback(Errors.DoesNotExist(`No prompt entry for "${menuConfig.prompt}"`));
|
||||||
}
|
}
|
||||||
return callback(null, menuConfig);
|
return callback(null, menuConfig);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue