tinker with error message

This commit is contained in:
Gregory Becker 2023-03-29 12:54:39 -07:00
parent bd305d48a9
commit b8e58e9bd8

View File

@ -619,7 +619,7 @@ def raise_if_symlink_before_exchange(self, force):
pass
msg = f"The view at {self.root} cannot be updated with the 'exchange' update method"
msg += " because it was originally constructed with the 'symlink' method."
msg += " Either change the update method to 'symlink' or"
msg += "\n Either change the update method to 'symlink' or"
msg += " run `spack env view regenerate --force` for a non-atomic update"
raise RuntimeError(msg)
@ -633,7 +633,7 @@ def raise_if_exchange_before_symlink(self, force):
pass
msg = f"The view at {self.root} cannot be updated with the 'symlink' update method"
msg += " because it was originally constructed with the 'exchange' method."
msg += " Either change the update method to 'exchange' or"
msg += "\n Either change the update method to 'exchange' or"
msg += " run `spack env view regenerate --force` for a non-atomic update"
raise RuntimeError(msg)