diff --git a/lib/gcli/system.js b/lib/gcli/system.js index 2fae1735..55a9cb7d 100644 --- a/lib/gcli/system.js +++ b/lib/gcli/system.js @@ -56,7 +56,13 @@ exports.createSystem = function(options) { }; var addItem = function(item) { - components[getItemType(item)].add(item); + try { + components[getItemType(item)].add(item); + } + catch (ex) { + console.error('While adding: ' + item.name); + throw ex; + } }; var removeItem = function(item) {