plots: improve non-out error message (#4115)

* plot: link to cmd ref in output

* plots: change non-plot output error msg
per https://github.com/iterative/dvc/pull/3994#discussion_r438917424

* Update dvc/repo/plots/__init__.py

Co-authored-by: Ruslan Kuprieiev <[email protected]>

Co-authored-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Jorge Orpinel
2020-06-25 23:53:21 +03:00
committed by GitHub
co-authored by Ruslan Kuprieiev
parent ad306d7bf3
commit 81a4cea71a
+2 -1
View File
@@ -13,7 +13,8 @@ logger = logging.getLogger(__name__)
class NotAPlotError(DvcException):
def __init__(self, out):
super().__init__(
f"'{out}' is not a plot. Use `dvc plots modify` to change that."
f"'{out}' is not a known plot. Use `dvc plots modify` to turn it "
"into one."
)