Skip to content

Commit

Permalink
Error handling for require-tree
Browse files Browse the repository at this point in the history
fixes TryGhost#2507

- ideally we would create an apps directory if one isn't present, but we can deal with that in later versions
  • Loading branch information
ErisDS committed Mar 25, 2014
1 parent d50d3cd commit 31fa3ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/server/require-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ var _ = require('lodash'),
}
paths._messages = messages;
return paths;
}).otherwise(function () {
return {'_messages': messages};
});
};

Expand Down

0 comments on commit 31fa3ba

Please sign in to comment.