From 81a4cea71a5a5d54d68575d8c4cacba7ad5563f3 Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Thu, 25 Jun 2020 15:53:21 -0500 Subject: [PATCH] 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 Co-authored-by: Ruslan Kuprieiev --- dvc/repo/plots/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/repo/plots/__init__.py b/dvc/repo/plots/__init__.py index 8a148aacb3..4386ca5613 100644 --- a/dvc/repo/plots/__init__.py +++ b/dvc/repo/plots/__init__.py @@ -13,7 +13,8 @@ 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." )