From bc2c84370d2fff7d709a1f8030d9d862de6369c2 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 13 Aug 2018 05:43:17 +0300 Subject: [PATCH] run: change prompt message Fixes #1005 Signed-off-by: Ruslan Kuprieiev --- dvc/stage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dvc/stage.py b/dvc/stage.py index 73238086e..413d2e54e 100644 --- a/dvc/stage.py +++ b/dvc/stage.py @@ -253,9 +253,10 @@ class Stage(object): if os.path.exists(path): relpath = os.path.relpath(path) - msg = "{} already exists. Do you wish to overwrite it?" + msg = "'{}' already exists. " \ + "Do you wish to run the command and overwrite it?" if not overwrite and not prompt(msg.format(relpath), False): - raise DvcException("{} already exists".format(relpath)) + raise DvcException("'{}' already exists".format(relpath)) stage.cwd = cwd stage.path = path