diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py index 10c61984bc2..90b367f94fa 100644 --- a/lib/spack/spack/environment/environment.py +++ b/lib/spack/spack/environment/environment.py @@ -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)