run: provide a hint if we get output duplication error

Related to #2559
This commit is contained in:
Ruslan Kuprieiev
2019-12-13 03:36:23 +02:00
parent 30f4551283
commit 173388b2f8
+2 -1
View File
@@ -47,7 +47,8 @@ class OutputDuplicationError(DvcException):
)
msg = (
"file/directory '{}' is specified as an output in more than one "
"stage: {}"
"stage: {}\n"
"This is not allowed. Consider using a different output name."
).format(output, "\n ".join(stages))
super(OutputDuplicationError, self).__init__(msg)