Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit f87bb9e

Browse files
committed
Merge pull request #85 from cellsjs/feature/show_commands_changes
fix(docs.js): fix crash when one command doesn't exists
2 parents 110c686 + 8f86ea5 commit f87bb9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/docs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ var docs = {
121121

122122
config.commands.forEach((command) => {
123123
var enrich = enriched.search(command);
124-
logger.txt("\t", chalk.bold(command),"(",chalk.yellow(enrich.description),")",enrich.type==='shot'?(" - "+chalk.grey("Shot")):"");
124+
if (enrich)
125+
logger.txt("\t", chalk.bold(command),"(",chalk.yellow(enrich.description),")",enrich.type==='shot'?(" - "+chalk.grey("Shot")):"");
125126
});
126127
},
127128

0 commit comments

Comments
 (0)