mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Change a "shouldn't happen" into a thrown Error
This commit is contained in:
@@ -123,10 +123,9 @@ _.extend(ResolverState.prototype, {
|
||||
|
||||
// Does adding this choice break some constraints we already have?
|
||||
if (!self.isSatisfied(uv)) {
|
||||
// XXX improve error
|
||||
self.error = "conflict: " + uv.toString({removeUnibuild: true}) +
|
||||
" can't be chosen";
|
||||
return self;
|
||||
// This shouldn't happen: all calls to addChoice should occur based on
|
||||
// choosing it from a list of satisfied alternatives.
|
||||
throw new Error("try to choose an unsatisfied version?");
|
||||
}
|
||||
|
||||
// Great, move it from dependencies to choices.
|
||||
|
||||
Reference in New Issue
Block a user