Skip to content

Commit

Permalink
Catch exception when dom renderer not present
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Jan 25, 2016
1 parent d3ad64b commit ca973a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ var Funnel = require('broccoli-funnel');
var path = require('path');

function distDirFor(packageName) {
var resolved = require.resolve(packageName + '/package.json');
if (resolved) {
try {
var resolved = require.resolve(packageName + '/package.json');
return path.join(path.dirname(resolved), 'dist');
} else {
} catch (e) {
return null;
}
}
Expand Down

0 comments on commit ca973a9

Please sign in to comment.