From 6df4188bd2cc3c60e1ee5abb299895a8f6dc4653 Mon Sep 17 00:00:00 2001 From: Yossi Farjoun Date: Sat, 28 Sep 2019 11:42:03 -0400 Subject: [PATCH] Added a space in error message als made consistent the placement of inter-word space when there's a newline in the code --- dvc/exceptions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dvc/exceptions.py b/dvc/exceptions.py index 822944ef5..a352ada15 100644 --- a/dvc/exceptions.py +++ b/dvc/exceptions.py @@ -47,7 +47,7 @@ class OutputDuplicationError(DvcException): for stage in stages ) msg = ( - "file/directory '{}' is specified as an output in more than one" + "file/directory '{}' is specified as an output in more than one " "stage: {}" ).format(output, "\n ".join(stages)) super(OutputDuplicationError, self).__init__(msg) @@ -82,8 +82,8 @@ class StagePathAsOutputError(DvcException): assert isinstance(wdir, str) or isinstance(wdir, builtin_str) assert isinstance(fname, str) or isinstance(fname, builtin_str) msg = ( - "current working directory '{cwd}' is specified as an output in" - " '{fname}'. Use another CWD to prevent any data removal.".format( + "current working directory '{cwd}' is specified as an output in " + "'{fname}'. Use another CWD to prevent any data removal.".format( cwd=wdir, fname=fname ) ) @@ -167,8 +167,8 @@ class CyclicGraphError(DvcException): assert isinstance(stages, list) stages = "\n".join("\t- {}".format(stage) for stage in stages) msg = ( - "you've introduced a cycle in your pipeline that involves" - " the following stages:" + "you've introduced a cycle in your pipeline that involves " + "the following stages:" "\n" "{stages}".format(stages=stages) )