From b8e58e9bd861f3898fa0de817e63702c2fce8bcd Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Wed, 29 Mar 2023 12:54:39 -0700 Subject: [PATCH] tinker with error message --- lib/spack/spack/environment/environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)