Cleanup after the big errors refactoring. 

SourceProviders are now used a lot at bind time, but not afterwards, when the injector is actually being built. We might be able to make this class non-static if we attach it to the Binder.

Renamed ResolveFailedException to ErrorsException.

git-svn-id: https://google-guice.googlecode.com/svn/trunk@521 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/src/com/google/inject/ScopesCommandProcessor.java b/src/com/google/inject/ScopesCommandProcessor.java
index e2c9ff2..2f9a3a4 100644
--- a/src/com/google/inject/ScopesCommandProcessor.java
+++ b/src/com/google/inject/ScopesCommandProcessor.java
@@ -57,7 +57,7 @@
 
     Scope existing = scopes.get(checkNotNull(annotationType, "annotation type"));
     if (existing != null) {
-      errors.at(command.getSource()).duplicateScopes(existing, annotationType, scope);
+      errors.duplicateScopes(existing, annotationType, scope);
     } else {
       scopes.put(annotationType, checkNotNull(scope, "scope"));
     }