Preserve original stack trace for UnsatisfiableSpecError
This commit is contained in:
parent
32117c22de
commit
de7e99f866
1 changed files with 4 additions and 3 deletions
|
@ -2113,14 +2113,15 @@ def _merge_dependency(self, dep, deptypes, visited, spec_deps,
|
||||||
fmt += 'while trying to concretize the partial spec:'
|
fmt += 'while trying to concretize the partial spec:'
|
||||||
fmt += '\n\n{0}\n\n'.format(self.tree(indent=4))
|
fmt += '\n\n{0}\n\n'.format(self.tree(indent=4))
|
||||||
fmt += '{0} requires {1} {2} {3}, but spec asked for {4}'
|
fmt += '{0} requires {1} {2} {3}, but spec asked for {4}'
|
||||||
|
|
||||||
e.message = fmt.format(
|
e.message = fmt.format(
|
||||||
self.name,
|
self.name,
|
||||||
dep.name,
|
dep.name,
|
||||||
e.constraint_type,
|
e.constraint_type,
|
||||||
e.required,
|
e.required,
|
||||||
e.provided
|
e.provided)
|
||||||
)
|
|
||||||
raise e
|
raise
|
||||||
|
|
||||||
# Add merged spec to my deps and recurse
|
# Add merged spec to my deps and recurse
|
||||||
dependency = spec_deps[dep.name]
|
dependency = spec_deps[dep.name]
|
||||||
|
|
Loading…
Reference in a new issue