run: change prompt message

Fixes #1005

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-08-13 05:43:56 +03:00
parent d34119d6f0
commit bc2c84370d
+3 -2
View File
@@ -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