We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd39752 commit c316eebCopy full SHA for c316eeb
bin/doxdox
@@ -82,11 +82,19 @@ fs.exists(filename, function (exists) {
82
83
data = dox.parseComments(fs.readFileSync(filename, 'utf8'));
84
85
- process.stdout.write(templates[layout]({
86
- title: title,
87
- description: description,
88
- methods: utils.parseData(data)
89
- }));
+ if (templates[layout]) {
+
+ process.stdout.write(templates[layout]({
+ title: title,
+ description: description,
90
+ methods: utils.parseData(data)
91
+ }));
92
93
+ } else {
94
95
+ console.log('Invalid layout specified.');
96
97
+ }
98
99
} else {
100
0 commit comments