This commit is contained in:
Kevin Sawicki
2013-04-16 17:52:00 -07:00
parent 8c138ebd04
commit 1aa0e52cea

View File

@@ -14,7 +14,8 @@ module.exports =
readObjectAsync: (path, done) ->
fs.readFile path, 'utf8', (err, contents) =>
return done(err) if err?
try done(null, @parseObject(path, contents))
try
done(null, @parseObject(path, contents))
catch err
done(err)