Commit 4d98364b authored by Eric Duminil's avatar Eric Duminil
Browse files

Error message

parent b369d49e
...@@ -39,7 +39,7 @@ def main() -> None: ...@@ -39,7 +39,7 @@ def main() -> None:
folder = get_simstadt_folder() folder = get_simstadt_folder()
print(f"SimStadt folder : {folder}") print(f"SimStadt folder : {folder}")
except ValueError as e: except ValueError as e:
print(f"SimStadt folder : NOT FOUND ({e})") print(f"SimStadt folder : NOT FOUND\n{e}")
return return
output = get_simstadt_output(folder) output = get_simstadt_output(folder)
......
...@@ -41,10 +41,10 @@ def find_simstadt(parent_folder: Path, simstadt_glob: str = SIMSTADT2_GLOB) -> P ...@@ -41,10 +41,10 @@ def find_simstadt(parent_folder: Path, simstadt_glob: str = SIMSTADT2_GLOB) -> P
return found return found
except StopIteration as e: except StopIteration as e:
raise ValueError( raise ValueError(
f"SimStadt not found in {parent_folder}/{simstadt_glob}. " f"SimStadt not found in {parent_folder}/{simstadt_glob}.\n"
"Please Set the SIMSTADT_FOLDER environment variable," "Please Set the SIMSTADT_FOLDER environment variable, "
"or install SimStadt on the Desktop." "or install SimStadt on the Desktop.\n\n"
"https://simstadt.hft-stuttgart.de/getting-started/install-software/" "See https://simstadt.hft-stuttgart.de/getting-started/install-software/"
) from e ) from e
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment