Skip to content

Commit

Permalink
directory_layout: fix error path when specs conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf committed Mar 10, 2016
1 parent 8bed8bc commit 8fd9755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spack/spack/directory_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def check_installed(self, spec):
return path

if spec.dag_hash() == installed_spec.dag_hash():
raise SpecHashCollisionError(installed_hash, spec_hash)
raise SpecHashCollisionError(spec, installed_spec)
else:
raise InconsistentInstallDirectoryError(
'Spec file in %s does not match hash!' % spec_file_path)
Expand Down Expand Up @@ -428,7 +428,7 @@ class SpecHashCollisionError(DirectoryLayoutError):
def __init__(self, installed_spec, new_spec):
super(SpecHashCollisionError, self).__init__(
'Specs %s and %s have the same SHA-1 prefix!'
% installed_spec, new_spec)
% (installed_spec, new_spec))


class RemoveFailedError(DirectoryLayoutError):
Expand Down

0 comments on commit 8fd9755

Please sign in to comment.