added error class for error that should never come up

This commit is contained in:
Gregory Becker 2016-03-18 09:46:18 -07:00
parent 1fa38689d8
commit 80495e50f9

View file

@ -498,3 +498,10 @@ def __init__(self, spec, ext_spec):
super(NoSuchExtensionError, self).__init__(
"%s cannot be removed from %s because it's not activated."% (
ext_spec.short_spec, spec.short_spec))
class DependencyConflictError(SpackError):
"""Raised when the dependencies cannot be flattened as asked for."""
def __init__(self, conflict):
super(DependencyConflictError, self).__init__(
"%s conflicts with another file in the flattened directory." %(
conflict))