Merge pull request #2941 from efiop/2559

run: provide a hint if we get output duplication error
This commit is contained in:
Ruslan Kuprieiev
2019-12-13 04:19:51 +02:00
committed by GitHub
+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)