Skip to content

Commit

Permalink
Add same message to cli as gui if existing runpath
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Sep 18, 2023
1 parent cadab0c commit fd77002
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ert/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ def run_cli(args: Namespace, _: Any = None) -> None:
experiment.write_simulation_arguments(model.simulation_arguments)

if model.check_if_runpath_exists():
print("Warning: ERT is running in an existing runpath")
print(
"Warning: ERT is running in an existing runpath.\n"
"Please be aware of the following:\n"
"- Previously generated results "
"might be overwritten.\n"
"- Previously generated files might "
"be used if not configured correctly.\n"
)
logger.warning("ERT is running in an existing runpath")

thread = threading.Thread(
Expand Down

0 comments on commit fd77002

Please sign in to comment.