Skip to content

Commit

Permalink
Don't error if the man folder is gone. Presumably it was for the best.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 3, 2010
1 parent 966633e commit 5aa217d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ log(event, "install docs")

fs.readdir(path.join(process.cwd(), "man"), function (er, docs) {
log(path.join(process.cwd(), "man"), "readdir")
if (er) throw new Error(er)
if (er) return
;(function R (doc) {
if (!doc) return
var target = path.join(process.installPrefix, "share/man/man1", "npm-"+doc)
Expand Down

0 comments on commit 5aa217d

Please sign in to comment.