diff --git a/lib/bundle.js b/lib/bundle.js index 60646c961..37f44c379 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -177,7 +177,7 @@ function logTree(tree) { ui.log('info', ''); tree = alphabetize(tree); for (var name in tree) { - if (tree[name].metadata.build !== false) + if (tree[name] && tree[name].metadata.build !== false) ui.log('info', ' `' + name + '`'); } ui.log('info', '');