mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 15:28:26 +01:00
run: change prompt message
Fixes #1005 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user