Permalink
Browse files

throwing error for unknown mode

  • Loading branch information...
1 parent 7140264 commit 23fed2853cf859a4fe6009029c3a32a255caae5e @thlorenz committed Apr 1, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 anchor-markdown-header.js
@@ -43,6 +43,8 @@ module.exports = function anchorMarkdownHeader(header, mode, moduleName) {
return getNodejsId(moduleName + '.' + hd);
};
break;
+ default:
+ throw new Error('Unknown mode: ' + mode);
}
var href = replace(header.trim().toLowerCase());

0 comments on commit 23fed28

Please sign in to comment.