Skip to content
Browse files

Exclude dot files

  • Loading branch information...
1 parent 9675086 commit 26ff8817257b48c0070d4a4533187189cb841151 @corpix committed Mar 16, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 index.js
  2. +1 −1 package.json
View
3 index.js
@@ -82,6 +82,9 @@ fs.readdir(httpErrors, function(err, files){
throw new Error(err);
files.forEach(function(file){
+ if(file.charAt(0) == '.')
+ return;
+
var opts = require(httpErrors + '/' + file);
opts.name = basename(file, '.json');
ex.define(opts);
View
2 package.json
@@ -2,7 +2,7 @@
"author": "Corpix <me@corpix.ru> (http://corpix.ru)",
"name": "express-errors",
"description": "Error handler",
- "version": "0.1.0",
+ "version": "0.1.1",
"repository": {
"type": "git",
"url": "git://github.com/corpix/express-errors.git"

0 comments on commit 26ff881

Please sign in to comment.
Something went wrong with that request. Please try again.