From 173388b2f84227e019d1e189e85d62f6976f371e Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 12 Dec 2019 05:01:05 +0200 Subject: [PATCH] run: provide a hint if we get output duplication error Related to #2559 --- dvc/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/exceptions.py b/dvc/exceptions.py index 92c84ed0e..1beb8d6e1 100644 --- a/dvc/exceptions.py +++ b/dvc/exceptions.py @@ -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)