Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Commit

Permalink
cleanup error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Jun 25, 2012
1 parent 6b97396 commit 324807d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions architect.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ function checkConfig(config) {


function checkCycles(config) { function checkCycles(config) {
var plugins = []; var plugins = [];
config.forEach(function(pluginConfig) { config.forEach(function(pluginConfig, index) {
plugins.push({ plugins.push({
packagePath: pluginConfig.packagePath, packagePath: pluginConfig.packagePath,
provides: pluginConfig.provides.concat(), provides: pluginConfig.provides.concat(),
consumes: pluginConfig.consumes.concat(), consumes: pluginConfig.consumes.concat(),
config: pluginConfig i: index
}); });
}); });


Expand Down Expand Up @@ -103,7 +103,7 @@ function checkCycles(config) {
plugin.provides.forEach(function(service) { plugin.provides.forEach(function(service) {
resolved[service] = true; resolved[service] = true;
}); });
sorted.push(plugin.config); sorted.push(config[plugin.i]);
changed = true; changed = true;
}); });
} }
Expand Down

0 comments on commit 324807d

Please sign in to comment.