Permalink
Browse files

cleanup error messages

  • Loading branch information...
1 parent 6b97396 commit 324807d85613795694622ea8b7b05c43d0e5feec @fjakobs fjakobs committed Jun 25, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 architect.js
View
@@ -65,12 +65,12 @@ function checkConfig(config) {
function checkCycles(config) {
var plugins = [];
- config.forEach(function(pluginConfig) {
+ config.forEach(function(pluginConfig, index) {
plugins.push({
packagePath: pluginConfig.packagePath,
provides: pluginConfig.provides.concat(),
consumes: pluginConfig.consumes.concat(),
- config: pluginConfig
+ i: index
});
});
@@ -103,7 +103,7 @@ function checkCycles(config) {
plugin.provides.forEach(function(service) {
resolved[service] = true;
});
- sorted.push(plugin.config);
+ sorted.push(config[plugin.i]);
changed = true;
});
}

0 comments on commit 324807d

Please sign in to comment.